C# Class SonarLint.VisualStudio.Integration.WPF.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: RelayCommandBase
Exibir arquivo Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Public Methods

Method Description
CanExecute ( ) : bool
Execute ( ) : void
RelayCommand ( System.Action execute ) : System
RelayCommand ( System.Action execute, Func canExecute ) : System

Protected Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void

Method Details

CanExecute() public method

public CanExecute ( ) : bool
return bool

CanExecute() protected method

protected CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( ) : void
return void

Execute() protected method

protected Execute ( object parameter ) : void
parameter object
return void

RelayCommand() public method

public RelayCommand ( System.Action execute ) : System
execute System.Action
return System

RelayCommand() public method

public RelayCommand ( System.Action execute, Func canExecute ) : System
execute System.Action
canExecute Func
return System