This is wht I have in my Window.Resources
XPath="Tables/Table"/>
This is my XML
This is what I'm using to bind to the listbox
ItemsSource="{Binding Source={StaticResource CallRecipes}}"
Width="305"/>
Where did I go wrong?
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.
Raaj KumarPosted Feb 21, 2010, 3:07 AM
Just try changing the
XPath="Tables/Table"/>
to,
Here in XPATH it should be like XPath="Rootnode/Collectionnode". For your code snippet rootnode="NewDataSet1" and collectionsnode="Tables". In listbox try this code.
>
Hope this would help you
Regards,
Raaj
Raaj KumarPosted Feb 21, 2010, 1:04 PM
http://patconroy.wordpress.com/2008/12/18/restyling-the-wpf-expander-control/
http://gargmanoj.wordpress.com/2009/03/29/wpf-101-custom-expander-control-to-show-a-popup-on-mouse-over/
http://simeonpilgrim.com/blog/2007/12/28/wpf-making-a-expander-look-like-a-groupbox/
RIck MuellerPosted Feb 21, 2010, 11:27 AM
any thoughts?
Thank You
RIck MuellerPosted Feb 21, 2010, 11:00 AM
The XML Data is:
My Filter/Sorting XAML is
XPath="NewDataSet1/Table">
My ListBox Style:
My ListBox Binding:
What currently I have is a Listbox the Expander Control populates but no header. I cant build it crashes
Any thoughts?
RIck MuellerPosted Feb 21, 2010, 9:43 AM
Still some issues If I Take XPath=Table out it populates the box. If I change the TextBox Binding to Station it populates the list with doubles(no filter on the collection). Thank you very close. Ideally I want the Stations to be in a expander tool and when expanded the recipes of that station would populate.
Any Thoughts?