C# Class SampleWpfApplication.RelayCommand

Inheritance: ICommand
显示文件 Open project: Syncano/syncano-dotnet Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
RaiseCanExecute ( ) : void
RelayCommand ( System.Action commandAction ) : System
RelayCommand ( System.Action commandAction, Func canExecuteFunc ) : System

Method Details

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

RaiseCanExecute() public method

public RaiseCanExecute ( ) : void
return void

RelayCommand() public method

public RelayCommand ( System.Action commandAction ) : System
commandAction System.Action
return System

RelayCommand() public method

public RelayCommand ( System.Action commandAction, Func canExecuteFunc ) : System
commandAction System.Action
canExecuteFunc Func
return System