Just getting my feet wet with WPF etc, and I all ready have water to my chin..
I have a listbox with a expander control , The databinding is XML.
I want to be able to add a expander control for every thats in the XML
Any ideas?
Thanks
|
|
|
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit ChoudharyPosted Feb 22, 2010, 3:07 AM
you can do it using ADO.Net Class DataSet. Just covert the XML file data to DataSet. In following i example i have changed the code from the article you have given. Extract data from dataset and added it to the Collection and then Create a view like in the article and bind it to the
List.
See below code.
i hope you problem get solved now.
Mark the answer if it helps you.
RIck MuellerPosted Feb 19, 2010, 11:18 AM
Amit ChoudharyPosted Feb 19, 2010, 4:08 AM
Try tree control and populate it with your XML data. i don't know much about WPF but i'm just guessing may be it helps you..