C# 클래스 UWP10template.Base.DelegateCommand

상속: ICommand
파일 보기 프로젝트 열기: mapaux/UWP10template

공개 메소드들

메소드 설명
DelegateCommand ( System.Action execute ) : System

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

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

Initializes a new instance of the RelayCommand class.

Execute ( object parameter ) : void

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

비공개 메소드들

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

메소드 상세

DelegateCommand() 공개 메소드

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

DelegateCommand() 공개 메소드

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

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