C# 클래스 SEToolbox.Services.DelegateCommand

This class allows delegating the commanding logic to methods passed as parameters, and enables a View to bind commands to objects that are not part of the element tree.
상속: ICommand
파일 보기 프로젝트 열기: midspace/SEToolbox

공개 메소드들

메소드 설명
CanExecute ( ) : bool

Method to determine if the command can be executed

DelegateCommand ( System.Action executeMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System

Constructor

DelegateCommand ( Func canExecuteMethod ) : System

Constructor

Execute ( ) : void

Execution of the command

ICommand ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void

Raises the CanExecuteChaged event

보호된 메소드들

메소드 설명
OnCanExecuteChanged ( ) : void

Protected virtual method to raise CanExecuteChanged event

비공개 메소드들

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

메소드 상세

CanExecute() 공개 메소드

Method to determine if the command can be executed
public CanExecute ( ) : bool
리턴 bool

DelegateCommand() 공개 메소드

Constructor
public DelegateCommand ( System.Action executeMethod ) : System
executeMethod System.Action
리턴 System

DelegateCommand() 공개 메소드

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System
executeMethod System.Action
canExecuteMethod Func
리턴 System

DelegateCommand() 공개 메소드

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System
executeMethod System.Action
canExecuteMethod Func
isAutomaticRequeryDisabled bool
리턴 System

DelegateCommand() 공개 메소드

Constructor
public DelegateCommand ( Func canExecuteMethod ) : System
canExecuteMethod Func
리턴 System

Execute() 공개 메소드

Execution of the command
public Execute ( ) : void
리턴 void

ICommand() 공개 메소드

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

OnCanExecuteChanged() 보호된 메소드

Protected virtual method to raise CanExecuteChanged event
protected OnCanExecuteChanged ( ) : void
리턴 void

RaiseCanExecuteChanged() 공개 메소드

Raises the CanExecuteChaged event
public RaiseCanExecuteChanged ( ) : void
리턴 void