KGy SOFT

ICommandBindingAddStateUpdater Method

KGy SOFT Core Libraries Help
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.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

ICommandBinding AddStateUpdater(
	ICommandStateUpdater updater,
	bool updateSources = false
)

Parameters

updater
Type: KGySoft.ComponentModelICommandStateUpdater
The updater to add.
updateSources (Optional)
Type: SystemBoolean
 to update the sources immediately; otherwise, . This parameter is optional.
Default value: .

Return Value

Type: ICommandBinding
This ICommandBinding instance to provide fluent initialization.
See Also

Reference