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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Databinding Connectors

Thread ID:

Created:

Updated:

Platform:

Replies:

103674 May 23,2012 03:44 PM UTC Jun 4,2012 08:53 AM UTC WPF 3
loading
Tags: Diagram
Robert Johnson
Asked On May 23, 2012 03:44 PM UTC

I played with your databinding feature. It seems that you don't introduce explicitly relationship concept into the model.

So, when I use HierarchicalDataTemplate on my business objects, when I inspect the datacontext of my connectors, it is always equal to the root of the diagram. I expected that it would give me a reference to the two linked node datacontext.

Have I to set explicitely this datacontext or I missed something ?

Tx, 
Robert

Sundar M [Syncfusion]
Replied On May 29, 2012 07:20 AM UTC

Hi Robert,

Regarding DataContext of the LineConnector, be default if you set DataContext for the object, the Content property of the element can be used to refer the business object. In your scenario, the LineConnector will not have the reference of the Business object. You can get the Businees object details by referring LineConnector HeadNode and TailNode property. Please refer the following sample code snippet.

Code Snippet:

object busineesObject=(line.HeadNode as Node).Content;

Here Line is the Instance of LineConnector.

If the above solution does not meet your requirement. Kinldy provide us more information about requirement such as Sample/Video. So the we can investigate more on you requirement.

Please let us know if you have any queries.

Regards,
Sundar M.

 


Robert Johnson
Replied On May 29, 2012 03:11 PM UTC

Hi,

Unfortunately, if I know what are linked objects, I don't know what property is used to draw this link.
Business objets can be linked by multiple properties.

If I take a class Person and two properties Friends and Colleagues, when I draw my diagram, how I can differentiate the connector which represents Friends property and which represents Colleagues property

var robert = Person{Name="Robert"}
var bob = Person{Name="Bob"}
robert.Friends.Add(bob)
robert.Colleagues.Add(bob)

I hope that this example will help you to understand my query.
Tx,
Robert.

Ramya Thirugnanam [Syncfusion]
Replied On June 4, 2012 08:53 AM UTC

Hi Robert,

With regards to DataBinding Connectors, we are working on your requirement. We will update you with the status of your requirement on June 6th 2012.

Please let us know if you have any concerns,                                                                                               
Regards,
Ramya


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

;