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. Image for the cookie policy date

Databind a Node to a custom object.

Hi,

We're trying to develop a develop a BPMN drawing tool with .NET 4.5 and Prism with SfDiagram tool.
How can I connect a custom object to a Node in the diagram? So when a node is added to the canvas, it is linked to the object.
A bit like the example in the online documentation, Data source, but then dynamically via a viewmodel.

Regards,
Danny

3 Replies

RA Ranjitha Amirthalingam Syncfusion Team April 10, 2017 12:44 PM UTC

Hi Danny, 

Thanks for contacting Syncfusion Support. 

We assumed that your requirement is “to create automatic connection between Nodes”. In DataSourceSettings, connection will be created automatically depends on the relationship between the Nodes.  

If our assumption is different from your requirement, please provide detailed explanation or screenshot to represent your requirement. 

Regards, 
Ranjitha A. 



DZ Danny Zwart April 13, 2017 11:02 AM UTC

Hi Ranjitha,

We want to create a binding between the diagram and the domain of the app. As such the nodes thats gets created in the diagram creates a custom object. This also needs to work in reverse. Our custom object list needs te be loaded to the diagram. I allready tried binding the datasourcesettings but this property doesn't allow binding. 

I've added a project wich contains the relevant part of the app in wich the problem lies. You can find further explenation in the MainWindow.xaml

The goal is that all the nodes wich are added to the diagram, gets added to a ObservableCollection<IElement> elements in ProcesFlow in the domain (eventually). The same goes for removal.

Regards,
Danny

Attachment: DiagramDataBinding_9f56d15.zip


SC Saranya Chandrasekaran Syncfusion Team April 18, 2017 12:58 PM UTC

Hi Danny, 
We have already logged your requirement “Need to add/remove Nodes of same custom collection” in our database. Currently, we are working on your requirement and it will be available in our upcoming Volume 2 2017 release. 
 
Regards, 
Saranya C.  


Loader.
Live Chat Icon For mobile
Up arrow icon