C# Class uguimvvm.RelayCommand

Inheritance: ICommand
显示文件 Open project: jbruening/ugui-mvvm

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void
RelayCommand ( System.Action execute, Func canExecute = null ) : 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

RaiseCanExecuteChanged() public method

public RaiseCanExecuteChanged ( ) : void
return void

RelayCommand() public method

public RelayCommand ( System.Action execute, Func canExecute = null ) : System
execute System.Action
canExecute Func
return System