Method | Description | |
---|---|---|
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.
|
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 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.
|
Method | Description | |
---|---|---|
GetDataContext ( object element ) : object |
public DataContextCommandBinding ( ) : System.Windows | ||
return | System.Windows |
public DataContextCommandBinding ( ICommand command ) : System.Windows | ||
command | ICommand | |
return | System.Windows |
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. |
return | void |
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. |
return | void |
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. |
return | void |
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. |
return | void |