Automatically number items in a wpf listbox
- by evan
I have a person class with two properties, Name an Age. I know how to use databinding to display a collection of person in a wpf list box and how to modify the listitemtemplate to customize how each person is displayed.
Now I'd like to number each person on the list according to the order they appear on the list (which could change as the the…