C# 클래스 ChocoPM.Commands.DataContextCommandBinding

A RoutedCommandBinding implementation that handles a RoutedCommand by executing methods of the DataContext of the UIElement whose UIElement.CommandBindings collection contains the DataContextCommandBinding.
상속: RoutedCommandBinding
파일 보기 프로젝트 열기: RichiCoder1/ChocoPM

공개 메소드들

메소드 설명
DataContextCommandBinding ( ) : System.Windows

Initializes a new instance of the DataContextCommandBinding class.

DataContextCommandBinding ( ICommand command ) : System.Windows

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

보호된 메소드들

메소드 설명
OnCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void

The method that is called when the CanExecute RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.

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

The method that is called when the Executed RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.

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

The method that is called when the PreviewCanExecute RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.

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

The method that is called when the PreviewExecuted RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.

비공개 메소드들

메소드 설명
GetDataContext ( object element ) : object

메소드 상세

DataContextCommandBinding() 공개 메소드

Initializes a new instance of the DataContextCommandBinding class.
public DataContextCommandBinding ( ) : System.Windows
리턴 System.Windows

DataContextCommandBinding() 공개 메소드

Initializes a new instance of the DataContextCommandBinding class by using the specified ICommand.
public DataContextCommandBinding ( ICommand command ) : System.Windows
command ICommand
리턴 System.Windows

OnCanExecute() 보호된 메소드

The method that is called when the CanExecute RoutedEvent for the ICommand associated with this DataContextCommandBinding should be handled.
protected 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 DataContextCommandBinding should be handled.
protected 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 DataContextCommandBinding should be handled.
protected 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 DataContextCommandBinding should be handled.
protected 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