C# Class MVVMUndoRedo.CommandModel

Model for a command
Afficher le fichier Open project: danice/MVVMUndoRedo

Méthodes publiques

Méthode 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 méthode

public CommandModel ( ) : System
Résultat System

CommandModel() public méthode

public CommandModel ( System.Windows.Input.RoutedCommand routedCommand ) : System
routedCommand System.Windows.Input.RoutedCommand
Résultat System

OnExecute() public abstract méthode

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

OnQueryEnabled() public méthode

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
Résultat void