开发者

WP7 toolkit: Gestures on ListBox - selected item

开发者 https://www.devze.com 2023-03-06 23:31 出处:网络
using hol开发者_JAVA百科d 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 s

using hol开发者_JAVA百科d 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消