C# Class SonarLint.VisualStudio.Progress.MVVM.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
Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Méthodes publiques

Méthode Description
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void
RelayCommand ( System.Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute ) : System

Creates a new command that can always execute.

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command.

Private Methods

Méthode Description
CanExecute ( object parameter ) : bool

Method Details

Execute() public méthode

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

RaiseCanExecuteChanged() public méthode

public RaiseCanExecuteChanged ( ) : void
Résultat void

RelayCommand() public méthode

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

RelayCommand() public méthode

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

RelayCommand() public méthode

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