C# 클래스 SonarLint.VisualStudio.Integration.WPF.ContextualCommandViewModel

View model for a command with fixed context that is required during command execution
상속: ViewModelBase
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

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