Version

Bind a DataPresenter Control to an XmlDataProvider

You can bind the DataPresenter controls to several different data sources, including an XML file. You can use an XmlDataProvider to expose your XML file to the presentation layer of your application. If you have not created an XmlDataProvider yet, you will have to read and follow the steps in Creating an XmlDataProvider before proceeding with the example code in this topic.

binding xamdatapresenter to an xmldataprovider

The following example code demonstrates how to bind a DataPresenter control to an XmlDataProvider.

In XAML:

<igDP:XamDataPresenter
    Name="xamDataPresenter1"
    DataSource="{Binding Source={StaticResource OrderData}, XPath=/Orders/Order}"></igDP:XamDataPresenter>