tags:

views:

100

answers:

2

I've spent the better part of the day trying to figure this out. From what I understand I need to use an XmlDataProvider but while debugging I see that it doesn't contain any data.

Can someone demonstrate how to do that?

+1  A: 

Try checking out this blog post on MSDN.

Here, they're binding to XML that's being pulled from an RSS feed. It walks through the process in pretty good detail.

Reed Copsey
A: 

I've read that but that was not exactly what I was looking for.

I'll re-phrase :

  1. Trying to bind a *.xml file contents to a WPF TreeView
  2. I imagine I'd have to populate a XmlDataProvider 1st
  3. I imagine I'd have to bind that provider to the treview next
  4. I want to do this 100% in C# code. No XAML. No Resources

Anyone?