5

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.

Dustin Davis
  • 14,482
  • 13
  • 63
  • 119

1 Answers1

2

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

Nigel Sampson
  • 10,549
  • 1
  • 28
  • 31