DiagramContextMenuBuildingEventArgs

StockSharp.Xaml.Diagram.Menus

Provides the context object and host menu contributions before a diagram menu opens.

继承自: EventArgs

构造函数

DiagramContextMenuBuildingEventArgs
public DiagramContextMenuBuildingEventArgs(DiagramContextKinds context, object target)
diagramContextMenuBuildingEventArgs = DiagramContextMenuBuildingEventArgs(context, target)

Initializes a new instance of the DiagramContextMenuBuildingEventArgs class.

context
Diagram context kind.
target
Object under the pointer.

属性

Context
public DiagramContextKinds Context { get; }
value = diagramContextMenuBuildingEventArgs.Context

Gets the context kind.

Items
public IList<DiagramMenuItemDescriptor> Items { get; }
value = diagramContextMenuBuildingEventArgs.Items

Gets descriptors appended after the standard menu items.

Target
public object Target { get; }
value = diagramContextMenuBuildingEventArgs.Target

Gets the object under the pointer.