ICommandStateUpdaterTryUpdateState Method
Tries to apply the specified state on the command source. If returns , then the possible chained other updaters can
try to update the state.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
bool TryUpdateState(
Object commandSource,
string stateName,
Object? value
)
Function TryUpdateState (
commandSource As Object,
stateName As String,
value As Object
) As Boolean
bool TryUpdateState(
Object^ commandSource,
String^ stateName,
Object^ value
)
abstract TryUpdateState :
commandSource : Object *
stateName : string *
value : Object -> bool
- commandSource Object
- The command source, whose state should be applied.
- stateName String
- Name of the state. The default updater handles it as a property on the commandSource.
- value Object
- The new value of the state to be applied.
Boolean if the state was applied successfully;
if other possibly chained updaters or the
default updater can try to apply the new state.