Tip
See the Remarks section of the ICommand interface for details and examples about commands.
public interface ICommandStateUpdater : IDisposablePublic Interface ICommandStateUpdater
Inherits IDisposablepublic interface class ICommandStateUpdater : IDisposabletype ICommandStateUpdater =
interface
interface IDisposable
endIf a binding has no updaters, then the states are not synchronized back to the sources.
A state updater can be added to a binding by the ICommandBinding.AddStateUpdater method. Multiple updaters can be added so if the first one cannot apply a state entry, then the second one will be used as a fallback and so on.
If state entries represent properties on the source use can add the PropertyCommandStateUpdater to the ICommandBinding.
If you want to seal the falling back logic of the updaters you can use the NullStateUpdater after the last updater you want to allow to work. If the NullStateUpdater is the first added updater, then synchronization of the states will be completely disabled even if other updaters are chained.
| TryUpdateState | Tries to apply the specified state on the command source. If returns , then the possible chained other updaters can try to update the state. |