How should I associate a ListBox item with an item in a list of mine using C#/WPF?
Posted
by Siracuse
on Stack Overflow
See other posts from Stack Overflow
or by Siracuse
Published on 2010-04-22T05:59:48Z
Indexed on
2010/04/22
6:13 UTC
Read the original article
Hit count: 235
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.
© Stack Overflow or respective owner