C# 클래스 MVVMUndoRedo.CommandModel

Model for a command
파일 보기 프로젝트 열기: danice/MVVMUndoRedo

공개 메소드들

메소드 설명
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.

메소드 상세

CommandModel() 공개 메소드

public CommandModel ( ) : System
리턴 System

CommandModel() 공개 메소드

public CommandModel ( System.Windows.Input.RoutedCommand routedCommand ) : System
routedCommand System.Windows.Input.RoutedCommand
리턴 System

OnExecute() 공개 추상적인 메소드

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

OnQueryEnabled() 공개 메소드

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
리턴 void