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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raaj KumarRank #7,836 · 233 reputationPosted Feb 20, 2010, 10:07 PM EST
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
RIck Mueller45 reputationPosted Feb 21, 2010, 4:43 AM EST
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?
RIck Mueller45 reputationPosted Feb 21, 2010, 6:00 AM EST
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 Mueller45 reputationPosted Feb 21, 2010, 6:27 AM EST
any thoughts?
Thank You
Raaj KumarRank #7,836 · 233 reputationPosted Feb 21, 2010, 8:04 AM EST
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/