AddCommandHandler Method
AddCommandHandler(UIElement, ICommand, Action)
Declaration
public static void AddCommandHandler(this UIElement element, ICommand command, Action execute)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | |
ICommand | command | |
Action | execute |
AddCommandHandler(UIElement, ICommand, Action, Func<Boolean>)
Declaration
public static void AddCommandHandler(this UIElement element, ICommand command, Action execute, Func<bool> canExecute)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | |
ICommand | command | |
Action | execute | |
Func<Boolean> | canExecute |