See the Remarks section for details.
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
public interface ICommandStateUpdater : IDisposable
Public Interface ICommandStateUpdater Inherits IDisposable
public interface class ICommandStateUpdater : IDisposable
type ICommandStateUpdater = interface interface IDisposable end
Thetype exposes the following members.
Tries to apply the specified state on the command source. If returns , then the possible chained other updaters can try to update the state.
If 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 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.
|See the Remarks section of the ICommand interface for details and examples about commands.|