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
)
Public Sub SetCommand (
key As Object,
value As ICommand,
setEnabled As Action(Of Boolean),
addExecute As Action(Of EventHandler(Of EventArgs)),
removeExecute As Action(Of EventHandler(Of EventArgs)),
getParameter As Func(Of Object)
)
member SetCommand :
key : Object *
value : ICommand *
setEnabled : Action<bool> *
addExecute : Action<EventHandler<EventArgs>> *
removeExecute : Action<EventHandler<EventArgs>> *
getParameter : Func<Object> -> unit
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