Click or drag to resize

PropertyStoreSetCommand Method

Sets an ICommand value for the specified property key.

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void SetCommand(
	Object key,
	ICommand value,
	Action<bool> setEnabled,
	Action<EventHandler<EventArgs>> addExecute,
	Action<EventHandler<EventArgs>> removeExecute,
	Func<Object> getParameter
)

Parameters

key
Type: SystemObject
Key of the property to set
value
Type: System.Windows.InputICommand
Command instance
setEnabled
Type: SystemActionBoolean
Delegate to set the widget as enabled when the command state changes.
addExecute
Type: SystemActionEventHandlerEventArgs
Delegate to attach the execute event handler when the widget invokes the command.
removeExecute
Type: SystemActionEventHandlerEventArgs
Delegate to detach the execute event handler.
getParameter
Type: SystemFuncObject
Delegate to get the parameter to pass to the command
See Also