CommandActionViewModel - конструктор
Пространство имён: Tessa.UI.WorkflowViewer.ViewModelsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
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 WorkflowEditorViewModel
-
- iconResource String
-
- command ICommand
-
- toolTip String (Optional)
-
- inputGesture InputGesture (Optional)
-
- stroke Brush (Optional)
-
- hidden Boolean (Optional)
-
- getVisibility FuncVisibility (Optional)
-
- editorChangedAction ActionPropertyChangedEventArgs, CommandActionViewModel (Optional)
-