How should I associate a ListBox item with an item in a list of mine using C#/WPF?
- by Siracuse
I have a listbox which has all the names for a list of "Gesture" objects I have.
I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine?
I'm using WPF.