C# Class Mojo.Wpf.ViewModel.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
Mostrar archivo Open project: Rhoana/Mojo Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void
RelayCommand ( Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command.

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

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