C# Class Mckineap.Utilities.RelayCommand

Inheritance: ICommand
Afficher le fichier Open project: loic-lavergne/mckineap Class Usage Examples

Méthodes publiques

Méthode Description
CanExecute ( object parameter ) : bool
Destroy ( ) : void
Execute ( object parameter ) : void
OnCanExecuteChanged ( ) : void
RelayCommand ( Action execute ) : System

Creates a new command of type T that can always execute

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command of type T with conditional execution

Private Methods

Méthode Description
DefaultCanExecute ( object parameter ) : bool

Method Details

CanExecute() public méthode

public CanExecute ( object parameter ) : bool
parameter object
Résultat bool

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Execute() public méthode

public Execute ( object parameter ) : void
parameter object
Résultat void

OnCanExecuteChanged() public méthode

public OnCanExecuteChanged ( ) : void
Résultat void

RelayCommand() public méthode

Creates a new command of type T that can always execute
public RelayCommand ( Action execute ) : System
execute Action The execute logic
Résultat System

RelayCommand() public méthode

Creates a new command of type T with conditional execution
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute logic
canExecute Predicate The execute status logic
Résultat System