I’m working on my first Windows 8 app. I’m trying to display a GridView populated with TextBlock’s. I want to get my data from an XML file I created. I found the ItemSource property of the GridView and want to bind my XML file to it. But, my XML file isn’t showing up in the local resources menu.
Am I going about this the wrong way?
You can use XmlDataProvider to bind a XML directly into the controls. Find an example here: http://www.codeproject.com/Articles/26875/WPF-XmlDataProvider-Two-Way-Data-Binding
I’m not sure though if you can use it in WinRT. If you do not, you can deserialize the XML into a List and bind it to the ItemsSource of the GridView.