ICommandBindingAddStateUpdater Method
Adds a state updater to the binding. If at least one updater is added, then changing the entries of the
State property will be applied on all added sources.
See the
Remarks section of the
ICommandStateUpdater interface for details.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
ICommandBinding AddStateUpdater(
ICommandStateUpdater updater,
bool updateSources = false
)
Function AddStateUpdater (
updater As ICommandStateUpdater,
Optional updateSources As Boolean = false
) As ICommandBinding
ICommandBinding^ AddStateUpdater(
ICommandStateUpdater^ updater,
bool updateSources = false
)
abstract AddStateUpdater :
updater : ICommandStateUpdater *
?updateSources : bool
(* Defaults:
let _updateSources = defaultArg updateSources false
*)
-> ICommandBinding
- updater ICommandStateUpdater
- The updater to add.
- updateSources Boolean (Optional)
- to update the sources immediately; otherwise, . This parameter is optional.
Default value: .
ICommandBindingThis
ICommandBinding instance to provide fluent initialization.