C# Класс ChocoPM.Commands.RoutedCommandBinding

The base class for CommandBinding types that invoke command logic in locations other than the code behind file.
Наследование: System.Windows.Input.CommandBinding
Показать файл Открыть проект

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
RoutedCommandBinding ( ) : System.Windows

Описание методов

OnCanExecute() защищенный абстрактный Метод

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.
Результат void

OnExecuted() защищенный абстрактный Метод

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.
Результат void

OnPreviewCanExecute() защищенный абстрактный Метод

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.
Результат void

OnPreviewExecuted() защищенный абстрактный Метод

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.
Результат void

RoutedCommandBinding() защищенный Метод

Initializes a new instance of the RoutedCommandBinding class by using the specified ICommand.
protected RoutedCommandBinding ( ICommand command ) : System.Windows
command ICommand
Результат System.Windows