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.
Syncfusion Feedback

Databind a Node to a custom object.

Thread ID:

Created:

Updated:

Platform:

Replies:

129864 Apr 6,2017 12:21 PM UTC Apr 18,2017 12:58 PM UTC WPF 3
loading
Tags: SfDiagram
Danny Zwart
Asked On April 6, 2017 12:21 PM UTC

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

Ranjitha Amirthalingam [Syncfusion]
Replied On 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. 


Danny Zwart
Replied On 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

Saranya Chandrasekaran [Syncfusion]
Replied On 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.  


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.

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

;