Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
108371 | Apr 16,2013 10:38 PM UTC | Apr 19,2013 04:14 AM UTC | WPF | 2 |
![]() |
Tags: Diagram |
Dim headnode As New Node()
headnode.Shape = Shapes.RoundedRectangle
headnode.Label = "Head Node"
headnode.Height = 100
headnode.Width = 100
headnode.OffsetX = 200
headnode.OffsetY = 200
diagramModel.Nodes.Add(headnode)
Dim tailnode As New Node()
tailnode.Shape = Shapes.RoundedRectangle
tailnode.Label = "Tail Node"
tailnode.Height = 100
tailnode.Width = 100
tailnode.OffsetX = 400
tailnode.OffsetY = 50
diagramModel.Nodes.Add(tailnode)
Dim line As New LineConnector()
Dim port As New ConnectionPort()
port.PortStyle.Stroke = New SolidColorBrush(Colors.OrangeRed)
port.PortStyle.Fill = New SolidColorBrush(Colors.OrangeRed)
port.Width = 10
port.Height = 10
port.PortOffset = 0.0
port.PortVisibility = PortVisibility.AlwaysVisible
line.Ports.Add(port)
line.ConnectorType = ConnectorType.Straight
line.TailNode = tailnode
port.Edge = line
diagramModel.Connections.Add(line)
Dim line1 As New LineConnector()
line1.LineStyle.Stroke = New SolidColorBrush(Colors.Brown)
line1.TailDecoratorStyle.Stroke = New SolidColorBrush(Colors.Brown)
line1.TailDecoratorStyle.Fill = New SolidColorBrush(Colors.Brown)
line1.TailDecoratorShape =
Syncfusion.Windows.Diagram.DecoratorShape.None
line1.ConnectionTailPort = port
line1.ConnectorType = ConnectorType.Straight
line1.HeadNode = headnode
diagramModel.Connections.Add(line1)
Hi Todd,
Thanks for the update. This will be work fine. And also, please let us know if you have any other concerns. As always, we will be happy to assist you. Thanks for using Syncfusion Products.
Regards,
Sudhakar C
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.