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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BiDirectional Diagram Data Binding

Thread ID:





96789 Oct 6,2010 11:30 AM UTC Feb 1,2011 01:15 PM UTC WPF 4
Tags: Diagram
Tom Peck
Asked On October 6, 2010 11:30 AM UTC

I'm in the process of evaluating SyncFusion for a new product we're putting together.

I have some business objects that I want to represent using a diagram, but the diagram needs to be editable by the user. The changes are limited to dragging and dropping new items, deleting items and linking/unlinking them.

I also need to preverve the user defined layout, so they are free to drag items around as they see fit.

Is it possible to accomplish this using supplied data binding or am I going to have to write my own extensions?

Jegan R [Syncfusion]
Replied On October 21, 2010 12:08 PM UTC

Hi Tom,
Thanks for evaluating Syncfusion products.

We have created a sample to represent BusinessObject data binding, In this sample the nodes can be dragged, drop new items, delete, link , unlink, but the Resize and Rotate of nodes is disabled. Also the business object collection can be edited using the menu items provided (Add and Remove), and the node collection will be updated accordingly.

Sample Link: BusinessSamples933155972.zip

We are not cleat with your query regarding, “I also need to preserve the user defined layout, so they are free to drag items around as they see fit”. Please send us more details on this query.

Please let us know if there are any concerns.


Replied On January 21, 2011 03:30 AM UTC


I had successfully bind my custom class (in XAML) to the GridView and this is just one way direction. Thus, may i know is it possible that if i add a new Node in GridView via UI, then it will automatically add the Node to my binded ObservableCollection?

Replied On January 24, 2011 04:43 PM UTC

Hi, any idea to my previous question?

Sundar M [Syncfusion]
Replied On February 1, 2011 01:15 PM UTC

Hi Ehor,

We assume that your query is about binding DiagramModel’s Node collections to GridView and the DiagramModel’s Node collection changes also will update to the GridView. We have created a sample for this, in that sample we have added a every DiagramModel’s Node collection element to Observable Collection named”Nodes” and we have binded that “Nodes” ObservableCollection as ItemSource for ListView. GridView is a children of the ListView and we have shown some Node properties value from GridColumns. For more details please refer the sample from the following link :
Sample Link : http://files2.syncfusion.com/Support/Diagram%20WPF%20&%20SL/Sample/ForumUpdate/GridView.zip

If this sample does not suits your requirement please send us more details with some screenshots and sample representing your requirement. so that we can investigate more on your requirements.

Please let us know if you have any queries.

Sundar M.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon