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