C# Class SEToolbox.Services.DelegateCommand

This class allows delegating the commanding logic to methods passed as parameters, and enables a View to bind commands to objects that are not part of the element tree.
Inheritance: ICommand
Afficher le fichier Open project: midspace/SEToolbox

Méthodes publiques

Méthode Description
CanExecute ( ) : bool

Method to determine if the command can be executed

DelegateCommand ( System.Action executeMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System

Constructor

DelegateCommand ( Func canExecuteMethod ) : System

Constructor

Execute ( ) : void

Execution of the command

ICommand ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void

Raises the CanExecuteChaged event

Méthodes protégées

Méthode Description
OnCanExecuteChanged ( ) : void

Protected virtual method to raise CanExecuteChanged event

Private Methods

Méthode Description
ICommand ( object parameter ) : bool

Method Details

CanExecute() public méthode

Method to determine if the command can be executed
public CanExecute ( ) : bool
Résultat bool

DelegateCommand() public méthode

Constructor
public DelegateCommand ( System.Action executeMethod ) : System
executeMethod System.Action
Résultat System

DelegateCommand() public méthode

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System
executeMethod System.Action
canExecuteMethod Func
Résultat System

DelegateCommand() public méthode

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System
executeMethod System.Action
canExecuteMethod Func
isAutomaticRequeryDisabled bool
Résultat System

DelegateCommand() public méthode

Constructor
public DelegateCommand ( Func canExecuteMethod ) : System
canExecuteMethod Func
Résultat System

Execute() public méthode

Execution of the command
public Execute ( ) : void
Résultat void

ICommand() public méthode

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

OnCanExecuteChanged() protected méthode

Protected virtual method to raise CanExecuteChanged event
protected OnCanExecuteChanged ( ) : void
Résultat void

RaiseCanExecuteChanged() public méthode

Raises the CanExecuteChaged event
public RaiseCanExecuteChanged ( ) : void
Résultat void