I have a WPF form that shows a contact (Name, Address and State).
The GUI is bound to a CurrentContact
object and they are stored in a List<Contact>
.
I would like to add buttons to the bottom:
+-----+ +-----+ +-----+ +-----+ | << | | < | | > | | >> | +-----+ +-----+ +-----+ +-----+
Meaning first, previous, next and last.
Is there an easy control or convention to iterate through the list? Or do I need to store an currentItemIndex and roll my own?