WPF - Bind listbox SelectedIndex to a TextBlock in the list.

Posted by Malcolm on Stack Overflow See other posts from Stack Overflow or by Malcolm
Published on 2009-01-10T10:50:21Z Indexed on 2010/03/23 21:03 UTC
Read the original article Hit count: 523

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about .NET