Interface IConnectionPreviewHandle
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
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
isValidboolTrue 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
startCanvasPointNew start point in canvas coordinates.
endCanvasPointNew end point in canvas coordinates.
UpdateEnd(CanvasPoint)
Updates the end point of the connection preview.
void UpdateEnd(CanvasPoint end)
Parameters
endCanvasPointNew end point in canvas coordinates.
UpdateStart(CanvasPoint)
Updates the start point of the connection preview.
void UpdateStart(CanvasPoint start)
Parameters
startCanvasPointNew start point in canvas coordinates.