-
August 4th, 2009, 10:36 PM
#1
Treeview Binding
Hello,
I have WPF aplication with a treeview that is bound to an XMLDataProvider in the XAML using HierarchicalDataTemplates. I'm trying to change the ItemsSource on the treeview at runtime because I don't know the xml filename until runtime.
What's the best way to go about doing something like this? I've tried the following which doesn't work.
XmlDataProvider dp = tree.FindResource("productsXml") as XmlDataProvider;
dp.Source = new Uri("file://products.xml");
Can you help me please? Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|