Trying to bind to MVVM XML Property

I've tried several different approaches, but I can't get anything to work.  How to I bind an XDocument or XmlDocument to the ItemsSource property on the DiagramModel.

3 Replies

RT Ramya Thirugnanam Syncfusion Team January 24, 2013 12:00 PM UTC

Hi Scott,

Regarding to bind an XDocument or XmlDocument to the ItemsSource property on the DiagramModel, we have created a simple sample to satisfy your requirement by using the Converter for populating the ItemSource from the XDocument. Please refer to the sample from the attachment.

Sample Details:

In this sample, we have used the XML data with a hierarchical-tree layout. The ItemTemplate property can be used to gain access to an XML data source by using the ItemSource property to generate a tree view of the XML data.

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



107648 XDocument_74cfd201.zip


SF Scott Farriss January 25, 2013 03:37 AM UTC

Thanks for the quick response, and the simple example.


RT Ramya Thirugnanam Syncfusion Team January 28, 2013 11:10 AM UTC

Hi Scott,

Thank you for your update.

 

Please let us know if you have any concerns,

Regards,

Ramya


Loader.
Up arrow icon