I have a listbox that populates expander controls the header and content is binded. I want to be able to SelectItem to a TextBlock.. Currently I'm using {Binding SelectedItem.Content, ElementName=Listbox}. I tried binding to the expander and the textbox that the Expanders populates in the expander. But no results.
Any Thoughts?
Loading
Raaj KumarPosted Feb 24, 2010, 2:30 AM
Hi,
Instead of using SelectedItem.Content try using SelectedItem only. Since the data is binded using XML data source you should a value converter for doing some data extraction. For create a class which inhererits from IvalueConverter.
and XAML,
while running the application try putting breakpoint and check the result such that it would help you in writing your logic
Regards,
raaj
RIck MuellerPosted Feb 24, 2010, 8:54 AM
Any thoughts?