Design Pattern Framework 3.5
OnCanExecute Method (sender, e)
Patterns-In-Action! Application ► WPFViewModel ► CommandModel ► OnCanExecute(Object, CanExecuteRoutedEventArgs)
Determines if a command is enabled. Override to provide custom behavior.
Do not call the base version when overriding.
Declaration Syntax
C# | Visual Basic |
public virtual void OnCanExecute( Object sender, CanExecuteRoutedEventArgs e )
Public Overridable Sub OnCanExecute ( _ sender As Object, _ e As CanExecuteRoutedEventArgs _ )
Parameters
- sender (Object)