This part of the article is a sequel to the previous article on how to develop a WPF application that can bind to XML data stored inline using LINQ to XML classes. In this part, I have discussed how to bind to an XML data stored in a file system.
It requires trivial changes in the XAML and the code-behind to bring in the same functionality here as we noted in the previous sample.
Remember that we kept the XML chunk of data of our previous sample in the CDATA section, inline with the XAML code. Using the
MethodName="Parse" specification in the Object DataProvider, this XML data is parsed and stored as an
Now, let us take a look at the resources section of the new XAML markup.