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
Afficher le fichier Open project: RichiCoder1/ChocoPM

Méthodes protégées

Méthode 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

Méthode Description
RoutedCommandBinding ( ) : System.Windows

Method Details

OnCanExecute() protected abstract méthode

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.
Résultat void

OnExecuted() protected abstract méthode

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.
Résultat void

OnPreviewCanExecute() protected abstract méthode

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.
Résultat void

OnPreviewExecuted() protected abstract méthode

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.
Résultat void

RoutedCommandBinding() protected méthode

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