WPF - Bind listbox SelectedIndex to a TextBlock in the list.
- by Malcolm
Hi,
I would like my listbox to number each item using the SelectedIndex property + 1.
How would I do that to the Text property of a TextBlock
in a DataTemplate of the listbox???
Malcolm
EDIT: i dont think I mean the Selectedindex just the index of the listboxitem.