C# 클래스 Mckineap.Utilities.RelayCommand

상속: ICommand
파일 보기 프로젝트 열기: loic-lavergne/mckineap 1 사용 예제들

공개 메소드들

메소드 설명
CanExecute ( object parameter ) : bool
Destroy ( ) : void
Execute ( object parameter ) : void
OnCanExecuteChanged ( ) : void
RelayCommand ( Action execute ) : System

Creates a new command of type T that can always execute

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command of type T with conditional execution

비공개 메소드들

메소드 설명
DefaultCanExecute ( object parameter ) : bool

메소드 상세

CanExecute() 공개 메소드

public CanExecute ( object parameter ) : bool
parameter object
리턴 bool

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

Execute() 공개 메소드

public Execute ( object parameter ) : void
parameter object
리턴 void

OnCanExecuteChanged() 공개 메소드

public OnCanExecuteChanged ( ) : void
리턴 void

RelayCommand() 공개 메소드

Creates a new command of type T that can always execute
public RelayCommand ( Action execute ) : System
execute Action The execute logic
리턴 System

RelayCommand() 공개 메소드

Creates a new command of type T with conditional execution
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute logic
canExecute Predicate The execute status logic
리턴 System