Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
DiagramConnection content position
posted

How do I change the content position on a DiagramConnection?

I tried using ContentPosition.Offset but that didn't seem to do anything.

I have a Rhombus (workflow decision) shape and I want the content of the connection that loops back to another DiagramNode to appear next to the Rhombus and not centered on the DiagramConnection.

Basically, how would I do that... in .Net code (not XAML).

Example code I have:

StepConnection = New Infragistics.Controls.Charts.DiagramConnection

StepConnection.StartNode = EndLoopNode

StepConnection.StartNodeKey = EndLoopNode.Name

StepConnection.StartNodeConnectionPointName = "Left"

StepConnection.EndNode = BeginLoopNode

StepConnection.EndNodeKey = BeginLoopNode.Name

StepConnection.EndNodeConnectionPointName = "Left"

StepConnection.Content = "Yes"

Parents Reply Children