ElementPropertiesViewModel

StockSharp.Xaml.Diagram.Maui

ViewModel 用于元素属性面板。

继承自: NotifiableObject

属性

CloseCommand
public DelegateCommand CloseCommand { get; }
value = elementPropertiesViewModel.CloseCommand

获得命令包接关闭。

Element
public DiagramElement Element { get; set; }
value = elementPropertiesViewModel.Element
elementPropertiesViewModel.Element = value

显示属性的元素 。

ElementCategory
public string ElementCategory { get; }
value = elementPropertiesViewModel.ElementCategory

选定元素的类别。

ElementName
public string ElementName { get; }
value = elementPropertiesViewModel.ElementName

选定元素的名称。

ElementType
public string ElementType { get; }
value = elementPropertiesViewModel.ElementType

选定元素的类型名称。

HasElement
public bool HasElement { get; }
value = elementPropertiesViewModel.HasElement

是否选择元素 。

HasInputSockets
public bool HasInputSockets { get; }
value = elementPropertiesViewModel.HasInputSockets

元素是否有输入套接字 。

HasOutputSockets
public bool HasOutputSockets { get; }
value = elementPropertiesViewModel.HasOutputSockets

元素是否有输出套接字 。

InputSockets
public ObservableCollection<SocketInfo> InputSockets { get; }
value = elementPropertiesViewModel.InputSockets

收集输入套接字信息。

InputSocketsHeight
public double InputSocketsHeight { get; }
value = elementPropertiesViewModel.InputSocketsHeight

输入套接字列表的高度 。

OutputSockets
public ObservableCollection<SocketInfo> OutputSockets { get; }
value = elementPropertiesViewModel.OutputSockets

收集输出套接字信息 。

OutputSocketsHeight
public double OutputSocketsHeight { get; }
value = elementPropertiesViewModel.OutputSocketsHeight

输出套接字列表的高度 。

方法

Close
private void Close()
elementPropertiesViewModel.Close()

近相指挥.

事件

CloseRequested
public event EventHandler CloseRequested
elementPropertiesViewModel.CloseRequested += handler

关闭按钮时事件被提起 。