DiagramCanvasDrawable

StockSharp.Xaml.Diagram.Maui

Renders a diagram on a MAUI GraphicsView using Microsoft.Maui.Graphics.

实现: IDrawable

属性

EditorState : DiagramEditorState

Editor state for drawing link creation feedback.

Model : ICompositionModel

The diagram model to render.

PanX : float

Horizontal pan offset.

PanY : float

Vertical pan offset.

RubberBandRect : RectF?

Current rubber band selection rectangle (screen coordinates), or null when not selecting.

SelectedElement : DiagramElement

Get the DiagramElement for the selected node.

SelectedNodeKey : string

Key of currently selected node, or null.

TouchHitPadding : float

Extra touch padding for node hit-testing on touch devices.

Zoom : float

Current zoom level (0.1 to 5.0).

方法

ClearCompatibleSockets()

Clear compatible sockets highlighting.

DiagramToScreen(float, float) : PointF

Transform a diagram point to screen coordinates.

DrawRubberBandSelection(ICanvas, RectF)

Draws a rubber band selection rectangle in screen coordinates.

GetContentBounds() : RectF?

Gets the bounding rectangle of all nodes in diagram coordinates.

HitTestNode(float, float) : string

Hit-test a screen point against nodes in the diagram.

HitTestNodesInRect(RectF) : List<string>

Finds all node keys within a screen-space rectangle.

HitTestSocket(float, float) : SocketKey

Hit-test a screen point against sockets in the diagram.

ScreenToDiagram(float, float) : PointF

Transform a screen point to diagram coordinates.

SetCompatibleSockets(IEnumerable<SocketKey>)

Set the compatible sockets for highlighting during link creation.