C# Class MoveToDesktop.RelayCommand

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'.
Inheritance: ICommand
显示文件 Open project: Eun/MoveToDesktop Class Usage Examples

Public Methods

Method Description
Execute ( object parameters ) : void
RelayCommand ( Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command.

Private Methods

Method Description
CanExecute ( object parameters ) : bool

Method Details

Execute() public method

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

RelayCommand() public method

Creates a new command that can always execute.
public RelayCommand ( Action execute ) : System
execute Action The execution logic.
return System

RelayCommand() public method

Creates a new command.
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execution logic.
canExecute Predicate The execution status logic.
return System