I\'m interested in creating commands that are available from anywhere in my WPF application.
I\'d like them to work in the same way as Cut, Copy>
Declare the CommandBinding at Application level from where it can be re-used everywhere.
In your App.xaml.cs file, define corresponding handlers :
private void CommandBinding_CanExecute_11(object sender, System.Windows.Input.CanExecuteRoutedEventArgs e)
{
e.CanExecute = false;
}
Usage
In any xaml file, use it like below :