I have a ListBox
...where the ItemSource
is a CollectionViewSource
rest everything same as in this link.
What I need is to access one property from my ListBox item's (or GroupItem ?) DataContext.
How can I access it ?
I have a ListBox
...where the ItemSource
is a CollectionViewSource
rest everything same as in this link.
What I need is to access one property from my ListBox item's (or GroupItem ?) DataContext.
How can I access it ?
Assuming that you want to bind some text, try the following:
<TextBlock Text={Binding DataContext.PropertyName, ElementName=YourListBoxName}" />