Table of Contents

Class ContextMenuRequestedEventArgs

Namespace
FlowGraph.Avalonia
Assembly
FlowGraph.Avalonia.dll

Event args for context menu request.

public class ContextMenuRequestedEventArgs : EventArgs
Inheritance
ContextMenuRequestedEventArgs
Inherited Members

Constructors

ContextMenuRequestedEventArgs(Control?, Point, Point, Node?, Edge?)

public ContextMenuRequestedEventArgs(Control? target, Point screenPosition, Point canvasPosition, Node? node = null, Edge? edge = null)

Parameters

target Control
screenPosition Point
canvasPosition Point
node Node
edge Edge

Properties

CanvasPosition

The canvas position where the context menu was requested.

public Point CanvasPosition { get; }

Property Value

Point

Edge

The edge that was right-clicked, if any.

public Edge? Edge { get; }

Property Value

Edge

Node

The node that was right-clicked, if any.

public Node? Node { get; }

Property Value

Node

ScreenPosition

The screen position where the context menu was requested.

public Point ScreenPosition { get; }

Property Value

Point

Target

The target control that was right-clicked.

public Control? Target { get; }

Property Value

Control