C# Class ChocoPM.Commands.RoutedCommandBinding

The base class for CommandBinding types that invoke command logic in locations other than the code behind file.
Inheritance: System.Windows.Input.CommandBinding
Show file Open project: RichiCoder1/ChocoPM

Protected Methods

Method Description
OnCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void

The method that is called when the CanExecute RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.

OnExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The method that is called when the Executed RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.

OnPreviewCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void

The method that is called when the PreviewCanExecute RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.

OnPreviewExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

The method that is called when the PreviewExecuted RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.

RoutedCommandBinding ( ICommand command ) : System.Windows

Initializes a new instance of the RoutedCommandBinding class by using the specified ICommand.

Private Methods

Method Description
RoutedCommandBinding ( ) : System.Windows

Method Details

OnCanExecute() protected abstract method

The method that is called when the CanExecute RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.
protected abstract OnCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
sender object The command target on which the command is executing.
e System.Windows.Input.CanExecuteRoutedEventArgs The event data.
return void

OnExecuted() protected abstract method

The method that is called when the Executed RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.
protected abstract OnExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object The command target on which the command is executing.
e System.Windows.Input.ExecutedRoutedEventArgs The event data.
return void

OnPreviewCanExecute() protected abstract method

The method that is called when the PreviewCanExecute RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.
protected abstract OnPreviewCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
sender object The command target on which the command is executing.
e System.Windows.Input.CanExecuteRoutedEventArgs The event data.
return void

OnPreviewExecuted() protected abstract method

The method that is called when the PreviewExecuted RoutedEvent for the ICommand associated with this RoutedCommandBinding should be handled. Inheriting types must provide an implementation for this method.
protected abstract OnPreviewExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object The command target on which the command is executing.
e System.Windows.Input.ExecutedRoutedEventArgs The event data.
return void

RoutedCommandBinding() protected method

Initializes a new instance of the RoutedCommandBinding class by using the specified ICommand.
protected RoutedCommandBinding ( ICommand command ) : System.Windows
command ICommand
return System.Windows