2

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 ?

Community
  • 1
  • 1
Relativity
  • 6,690
  • 22
  • 78
  • 128

1 Answers1

1

Assuming that you want to bind some text, try the following:

<TextBlock Text={Binding DataContext.PropertyName, ElementName=YourListBoxName}" />
Sheridan
  • 68,826
  • 24
  • 143
  • 183