C# 클래스 WinRTXamlToolkit.Debugging.Commands.RelayCommand

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'. This class does not allow you to accept command parameters in the Execute and CanExecute callback methods.
상속: ICommand
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( object parameter ) : void

Defines the method to be called when the command is invoked.

RelayCommand ( System.Action execute ) : System

Initializes a new instance of the RelayCommand class that can always execute.

RelayCommand ( System.Action execute, Func canExecute ) : System

Initializes a new instance of the RelayCommand class.

비공개 메소드들

메소드 설명
CanExecute ( object parameter ) : bool
RaiseCanExecuteChanged ( ) : void

메소드 상세

Execute() 공개 메소드

Defines the method to be called when the command is invoked.
public Execute ( object parameter ) : void
parameter object This parameter will always be ignored.
리턴 void

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class that can always execute.
If the execute argument is null.
public RelayCommand ( System.Action execute ) : System
execute System.Action The execution logic.
리턴 System

RelayCommand() 공개 메소드

Initializes a new instance of the RelayCommand class.
If the execute argument is null.
public RelayCommand ( System.Action execute, Func canExecute ) : System
execute System.Action The execution logic.
canExecute Func The execution status logic.
리턴 System