C# Class MVVMUndoRedo.CommandModel

Model for a command
Mostra file Open project: danice/MVVMUndoRedo

Public Methods

Method Description
CommandModel ( ) : System
CommandModel ( System.Windows.Input.RoutedCommand routedCommand ) : System
OnExecute ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Function to execute the command.

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

Determines if a command is enabled. Override to provide custom behavior. Do not call the base version when overriding.

Method Details

CommandModel() public method

public CommandModel ( ) : System
return System

CommandModel() public method

public CommandModel ( System.Windows.Input.RoutedCommand routedCommand ) : System
routedCommand System.Windows.Input.RoutedCommand
return System

OnExecute() public abstract method

Function to execute the command.
public abstract OnExecute ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object
e System.Windows.Input.ExecutedRoutedEventArgs
return void

OnQueryEnabled() public method

Determines if a command is enabled. Override to provide custom behavior. Do not call the base version when overriding.
public OnQueryEnabled ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
sender object
e System.Windows.Input.CanExecuteRoutedEventArgs
return void