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.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
ICommandBinding AddStateUpdater(
	ICommandStateUpdater updater,
	bool updateSources = false
)

Parameters

updater  ICommandStateUpdater
The updater to add.
updateSources  Boolean  (Optional)
to update the sources immediately; otherwise, . This parameter is optional.
Default value: .

Return Value

ICommandBinding
This ICommandBinding instance to provide fluent initialization.

See Also