We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Orthogonal Line Connections

Thread ID:

Created:

Updated:

Platform:

Replies:

90629 Oct 12,2009 05:39 AM Oct 12,2009 08:02 AM WPF 1
loading
Tags: Diagram
Andrei Andriesi
Asked On October 12, 2009 05:39 AM

Hello,

I am trying to create an orthogonal connection between two nodes in the diagram but I do not find the necessary properties. I need my connection to be routed throw some specific points, points that I can add to my line connection. Is that possible?

I also cannot find any events for the position changing and position changed of a node or line. Is there a way to have this?

Thanks,
Andrei

Nikhil A [Syncfusion]
Replied On October 12, 2009 08:02 AM

Hi Andrei,

Thanks for your interest in Syncfusion products.

In the current version of Diagram WPF , it is not possible to manually specify points on the line connector to route them accordingly. This feature has already been added to our feature queue and it will be available in our future releases. However custom connection ports can be added to the node and connections can be made to those specific points on the node . For more information on Connection ports please refer our online documentation:

http://help.syncfusion.com/ug_73/diagramWPF/defaultWPF.html

Navigate to : ConceptsAndFeatures-->ConnectionPort.


Essential Diagram WPF provides several events for Nodes and Connections. The NodeDragStart and NodeDragEnd events can be used to achieve you requirement. The NodeDragStart event fires as soon as the user starts to drag the node, i.e. before the position is changed. And the NodeDragEnd event fires soon after the node's position is changed (drag is over).

These events can be specified as follows:

diagramView.NodeDragStart += new NodeEventHandler(diagramView_NodeDragStart);

• And then the event handler can be specified in the code behind as follows.


// Event Handler
void diagramView_NodeDragStart(object sender, NodeRoutedEventArgs evtArgs)
{
// user specified code
}

Similarly other events can be accessed.

For complete information on all the events available , please refer our online documentation:


http://help.syncfusion.com/ug_73/diagramWPF/defaultWPF.html

Navigate to : ConceptsAndFeatures-->Event Mechanism


Please let us know if there are any concerns.

Regards,
Nikhil,
Syncfusion WPF team

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;