C# Class Test.DelegateCommand

デリゲートを受け取るICommandの実装
Inheritance: ICommand
Datei anzeigen Open project: Roommetro/Friendly.WPFStandardControls

Public Methods

Method Description
CanExecute ( ) : bool

コマンドが実行可能な状態化どうか問い合わせます。

DelegateCommand ( System.Action execute ) : System

コマンドのExecuteメソッドで実行する処理を指定してDelegateCommandのインスタンスを 作成します。

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

コマンドのExecuteメソッドで実行する処理とCanExecuteメソッドで実行する処理を指定して DelegateCommandのインスタンスを作成します。

Execute ( ) : void

コマンドを実行します。

Private Methods

Method Description
ICommand ( object parameter ) : bool

ICommand.CanExecuteの明示的な実装。CanExecuteメソッドに処理を委譲する。

ICommand ( object parameter ) : void

ICommand.Executeの明示的な実装。Executeメソッドに処理を委譲する。

Method Details

CanExecute() public method

コマンドが実行可能な状態化どうか問い合わせます。
public CanExecute ( ) : bool
return bool

DelegateCommand() public method

コマンドのExecuteメソッドで実行する処理を指定してDelegateCommandのインスタンスを 作成します。
public DelegateCommand ( System.Action execute ) : System
execute System.Action Executeメソッドで実行する処理
return System

DelegateCommand() public method

コマンドのExecuteメソッドで実行する処理とCanExecuteメソッドで実行する処理を指定して DelegateCommandのインスタンスを作成します。
public DelegateCommand ( System.Action execute, Func canExecute ) : System
execute System.Action Executeメソッドで実行する処理
canExecute Func CanExecuteメソッドで実行する処理
return System

Execute() public method

コマンドを実行します。
public Execute ( ) : void
return void