Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP7 toolkit: Gestures on ListBox - selected item

using hold gesture on listbox. When the hold is fired the original source is a textblock not the listitem. How do I get the selected item from the gesture? sender is a listbox but the selecteditem/index/items contains nothing.

like image 762
Dustin Davis Avatar asked Nov 04 '22 21:11

Dustin Davis


1 Answers

The DataContext property of the TextBlock will have the item bound to that ListItem.

like image 168
Nigel Sampson Avatar answered Nov 26 '22 17:11

Nigel Sampson