C# Class AttachedCommandBehavior.SimpleCommand

Implements the ICommand and wraps up all the verbose stuff so that you can just pass 2 delegates 1 for the CanExecute and one for the Execute
Inheritance: ICommand
Mostrar archivo Open project: dotob/moni Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool

Checks if the command Execute method can run

Execute ( object parameter ) : void

Executes the actual command

Method Details

CanExecute() public method

Checks if the command Execute method can run
public CanExecute ( object parameter ) : bool
parameter object THe command parameter to be passed
return bool

Execute() public method

Executes the actual command
public Execute ( object parameter ) : void
parameter object THe command parameter to be passed
return void