CommandActionViewModel - конструктор |
Пространство имён:
Tessa.UI.WorkflowViewer.ViewModels
Сборка:
Tessa.UI (в Tessa.UI.dll) Версия: 3.5.0.19
Синтаксис public CommandActionViewModel(
WorkflowEditorViewModel editor,
string iconResource,
ICommand command,
string toolTip = null,
InputGesture inputGesture = null,
Brush stroke = null,
bool hidden = false,
Func<Visibility> getVisibility = null,
Action<PropertyChangedEventArgs, CommandActionViewModel> editorChangedAction = null
)
Public Sub New (
editor As WorkflowEditorViewModel,
iconResource As String,
command As ICommand,
Optional toolTip As String = Nothing,
Optional inputGesture As InputGesture = Nothing,
Optional stroke As Brush = Nothing,
Optional hidden As Boolean = false,
Optional getVisibility As Func(Of Visibility) = Nothing,
Optional editorChangedAction As Action(Of PropertyChangedEventArgs, CommandActionViewModel) = Nothing
)
public:
CommandActionViewModel(
WorkflowEditorViewModel^ editor,
String^ iconResource,
ICommand^ command,
String^ toolTip = nullptr,
InputGesture^ inputGesture = nullptr,
Brush^ stroke = nullptr,
bool hidden = false,
Func<Visibility>^ getVisibility = nullptr,
Action<PropertyChangedEventArgs^, CommandActionViewModel^>^ editorChangedAction = nullptr
)
new :
editor : WorkflowEditorViewModel *
iconResource : string *
command : ICommand *
?toolTip : string *
?inputGesture : InputGesture *
?stroke : Brush *
?hidden : bool *
?getVisibility : Func<Visibility> *
?editorChangedAction : Action<PropertyChangedEventArgs, CommandActionViewModel>
(* Defaults:
let _toolTip = defaultArg toolTip null
let _inputGesture = defaultArg inputGesture null
let _stroke = defaultArg stroke null
let _hidden = defaultArg hidden false
let _getVisibility = defaultArg getVisibility null
let _editorChangedAction = defaultArg editorChangedAction null
*)
-> CommandActionViewModel
Параметры
- editor
- Тип: Tessa.UI.WorkflowViewer.ViewModelsWorkflowEditorViewModel
- iconResource
- Тип: SystemString
- command
- Тип: System.Windows.InputICommand
- toolTip (Optional)
- Тип: SystemString
- inputGesture (Optional)
- Тип: System.Windows.InputInputGesture
- stroke (Optional)
- Тип: System.Windows.MediaBrush
- hidden (Optional)
- Тип: SystemBoolean
- getVisibility (Optional)
- Тип: SystemFuncVisibility
- editorChangedAction (Optional)
- Тип: SystemActionPropertyChangedEventArgs, CommandActionViewModel
См. также