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.

WPF Diagram - customize type of connectors used when using databinding

Thread ID:

Created:

Updated:

Platform:

Replies:

114192 Nov 4,2013 04:44 PM Nov 8,2013 05:33 AM WPF 1
loading
Tags: Diagram
Elizabeth Rudkin
Asked On November 4, 2013 04:44 PM

I am using a straightforward DiagramModel which binds to a hierarchy of objects.  it looks fine, except that I would like to customize the look of the connectors.  By default the diagram uses Orthogonal connectors.  But what if I would like to use Straight or arc connectors, or I wish to change the DecoratorShape at either end?

I have looked through the documentation and I don't see a way to alter the default connectors in any way (except the line path style).

Parthiban A [Syncfusion]
Replied On November 8, 2013 05:33 AM

Hi Elizebath,

 

We have analysed your query regarding customize type of connector while databinding. We can change the connector type by using property named ConnectorType under diagram page, which in turn found under diagram view. This will set the default connector type for diagram control.

 

Code Snippet:

 

DiagramView diagramview=new DiagramView();

(diagramview.Page as DiagramPage).ConnectorType = ConnectorType.Straight;

 

Please let us know if you require further assist on this.

 

Regards,

Parthiban A.


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.

;