Property | Type | Description | |
---|---|---|---|
IsCommandSinkProperty |
Method | Description | |
---|---|---|
GetIsCommandSink ( |
Returns a value indicating whether or not the specified DependencyObject is a command sink or not.
|
|
SetIsCommandSink ( |
Sets the value indicating whether or not the specified DependencyObject is a command sink or not.
|
|
SmartRoutedUICommand ( string text, |
Initializes a new instance of the SmartRoutedUICommand class, specifying a label and an owner class.
|
Method | Description | |
---|---|---|
CanExecuteCore ( object parameter ) : bool |
Child classes override this method to provide logic which determines if the command can execute. This method will only be invoked if no element in the tree indicated that it can execute the command.
|
|
ExecuteCore ( object parameter ) : void |
Child classes override this method to provide default execution logic. This method will only be invoked if CanExecuteCore returns true.
|
Method | Description | |
---|---|---|
OnCanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void |
Event handler, called when CanExecute changes.
|
|
OnExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void |
Event handler, called when Executed changes.
|
|
OnIsCommandSinkChanged ( |
Invoked when the IsCommandSink attached property is set on an element.
|
protected abstract CanExecuteCore ( object parameter ) : bool | ||
parameter | object | The command parameter (optional). |
return | bool |
protected abstract ExecuteCore ( object parameter ) : void | ||
parameter | object | The command parameter (optional). |
return | void |
public static GetIsCommandSink ( |
||
obj | the object to check | |
return | bool |
public static SetIsCommandSink ( |
||
obj | the object to modify | |
value | bool | true if the passed object is a command sink, false otherwise |
return | void |
public SmartRoutedUICommand ( string text, |
||
text | string | the label to use |
ownerType | the owner class to use | |
return | System |