C# Class SonarLint.VisualStudio.Integration.WPF.ContextualCommandViewModel

View model for a command with fixed context that is required during command execution
Inheritance: ViewModelBase
Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Private Properties

Свойство Type Description
CanExecute bool
Execute void
SetDynamicDisplayText void
SetDynamicIcon void

Méthodes publiques

Méthode Description
ContextualCommandViewModel ( object fixedContext, ICommand command ) : System

Creates an instance of contextual command view model

SetCommand ( ICommand realCommand ) : void

Private Methods

Méthode Description
CanExecute ( ) : bool
Execute ( ) : void
SetDynamicDisplayText ( string>.Func getDisplayText ) : void
SetDynamicIcon ( IconViewModel>.Func getIconFunc ) : void

Method Details

ContextualCommandViewModel() public méthode

Creates an instance of contextual command view model
public ContextualCommandViewModel ( object fixedContext, ICommand command ) : System
fixedContext object Required context
command ICommand Optional real command to trigger and pass the fixed context to
Résultat System

SetCommand() public méthode

public SetCommand ( ICommand realCommand ) : void
realCommand ICommand
Résultat void