Articles in this section
Category / Section

How to customize the direction of bridge in WPF Diagram (SfDiagram)?

1 min read

Line Bridging creates a bridge for lines to smartly cross over other lines, at points of intersection. By default, the Connector with the higher z-order (upper one) draws an arc over the underlying connector when two-line connectors meet each other. WPF Diagram (SfDiagram) provide a support to change the direction of Bridge (which connector will have a Bridge) by using BridgeDirection property. Bridging can be enabled or disabled either with the Connector.Constraints or diagram.Constraints. We have provided code example and screenshot to represent this.

C#:

//to enable Bridging.
diagram.Constraints = GraphConstraints.Default | GraphConstraints.Bridging;
//to customize the Bridge Direction.
diagram.BridgeDirection = BridgeDirection.Bottom;

 

Customize the bridge direction in WPF Diagram

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