Articles in this section
Category / Section

How to detect or get notification when editing the thumbs of connector in WPF Diagram (SfDiagram)?

1 min read

The runtime interaction (adding/modifying) of segments can be done with Segment thumbs of the connector. The changes will be notified or tracked with the help of the ConnectorEditing event of the WPF Diagram (SfDiagram).

The ConnectorEditingEventArgs will provide the “DragState” as argument which shows the state of segment editing and ControlPointType argument is used to identify which segment is edited.

Refer to the following code example to represent the editing of Bezier Segments.

C#

private void ConnectorEditing(object sender, ConnectorEditingEventArgs args)
{
    if (args.ControlPointType == ControlPointType.CubicCurveSegment 
        || args.ControlPointType == ControlPointType.QuadraticCurveSegment)
    {
        // Perform action need to be done 
    }
}

Similarly, you can also validate for other connector segments.  Please refer to the help documentation to know about segments editing.

UG Link: https://help.syncfusion.com/wpf/diagram/connector/segments/quadratic

See Also,

How to customize the diagram thumb or segment thumb style

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied