Search code examples
windows-phone-7silverlight-toolkit

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.


Solution

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