Table of Contents

Interface IConnectionPreviewHandle

Namespace
FlowGraph.Avalonia.Rendering
Assembly
FlowGraph.Avalonia.dll

Handle for managing a temporary connection preview line.

public interface IConnectionPreviewHandle : IDisposable
Inherited Members

Properties

Opacity

Gets or sets the opacity (0.0 to 1.0).

double Opacity { get; set; }

Property Value

double

Stroke

Gets or sets the stroke brush.

IBrush Stroke { get; set; }

Property Value

IBrush

Methods

SetValidTargetStyle(bool)

Sets whether the line should use a "valid target" visual style.

void SetValidTargetStyle(bool isValid)

Parameters

isValid bool

True for valid target style, false for normal preview style.

Update(CanvasPoint, CanvasPoint)

Updates both endpoints of the connection preview.

void Update(CanvasPoint start, CanvasPoint end)

Parameters

start CanvasPoint

New start point in canvas coordinates.

end CanvasPoint

New end point in canvas coordinates.

UpdateEnd(CanvasPoint)

Updates the end point of the connection preview.

void UpdateEnd(CanvasPoint end)

Parameters

end CanvasPoint

New end point in canvas coordinates.

UpdateStart(CanvasPoint)

Updates the start point of the connection preview.

void UpdateStart(CanvasPoint start)

Parameters

start CanvasPoint

New start point in canvas coordinates.