I would like to know how best to implement the following feature. Suppose some application has a menu. When creating an application, this menu is created. Each MenuItem contains a specific command. When executing any command, some MenuItem must be dizable. Conversely, when executing another command, be available for execution. How best to implement this behavior? I see several options:
- Run a bunch. That is, make the IsEnabled property dependent. Each time the target property changes, the dependent property changes (I personally understand the binding mechanism)
- Create a MenuItemAccessChanged event that, in the processing of which, forcibly updates all menu items