DiagramMenuItemDescriptor

StockSharp.Xaml.Diagram.Menus

Describes a localized standard diagram menu item independently from Avalonia controls.

Конструкторы

DiagramMenuItemDescriptor
public DiagramMenuItemDescriptor(DiagramMenuCommandKinds kind, string header, string iconKey, string gesture)
diagramMenuItemDescriptor = DiagramMenuItemDescriptor(kind, header, iconKey, gesture)

Initializes a new instance of the DiagramMenuItemDescriptor class.

kind
Command kind.
header
Localized item header.
iconKey
Shared StockSharp SVG icon key.
gesture
The keys that call the command, as a menu writes them (Ctrl+Z), or when none do.

Свойства

Gesture
public string Gesture { get; }
value = diagramMenuItemDescriptor.Gesture

Gets the keys that call the command, or when none do.

Header
public string Header { get; }
value = diagramMenuItemDescriptor.Header

Gets the localized header.

IconKey
public string IconKey { get; }
value = diagramMenuItemDescriptor.IconKey

Gets the shared SVG icon key.

Kind
public DiagramMenuCommandKinds Kind { get; }
value = diagramMenuItemDescriptor.Kind

Gets the command kind.