C# Класс SonarLint.VisualStudio.Integration.WPF.ContextualCommandViewModel

View model for a command with fixed context that is required during command execution
Наследование: ViewModelBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CanExecute bool
Execute void
SetDynamicDisplayText void
SetDynamicIcon void

Открытые методы

Метод Описание
ContextualCommandViewModel ( object fixedContext, ICommand command ) : System

Creates an instance of contextual command view model

SetCommand ( ICommand realCommand ) : void

Приватные методы

Метод Описание
CanExecute ( ) : bool
Execute ( ) : void
SetDynamicDisplayText ( string>.Func getDisplayText ) : void
SetDynamicIcon ( IconViewModel>.Func getIconFunc ) : void

Описание методов

ContextualCommandViewModel() публичный Метод

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
Результат System

SetCommand() публичный Метод

public SetCommand ( ICommand realCommand ) : void
realCommand ICommand
Результат void