Back to Devexpress

DiagramControl.ConnectorsSeparationMode Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-1f8e103a.md

latest2.7 KB
Original Source

DiagramControl.ConnectorsSeparationMode Property

Specifies whether to automatically split the overlapping right-angle connectors. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public DiagramConnectorsSeparationMode ConnectorsSeparationMode { get; set; }
vb
Public Property ConnectorsSeparationMode As DiagramConnectorsSeparationMode

Property Value

TypeDescription
DiagramConnectorsSeparationMode

A DevExpress.Diagram.Core.DiagramConnectorsSeparationMode enumeration value.

|

Available values:

NameDescription
NoLines

Right-angle connectors can be overlapped.

| | AllLines |

Overlapping right-angle connectors are automatically split.

|

Remarks

The default value of the ConnectorsSeparationMode property is NoLines. Multiple right-angle connectors that originate from the same point can overlap so it’s not clear which shapes are connected. To resolve the issue, set the ConnectorsSeparationMode property to AllLines to automatically split connectors.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConnectorsSeparationMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-generate-diagram-with-grouped-items/CS/DiagramNestedItemsExample/MainWindow.xaml#L73

xml
x:Name="diagramControl1"
ConnectorsSeparationMode="AllLines"
SelectedStencils="BasicShapes, BasicFlowchartShapes"

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace