Is it possible to know when a particular panorama item is displayed

给你一囗甜甜゛ 提交于 2019-12-21 14:02:15

问题


I have a list of panorama Items.

I want to know when the user has reached a particular panorama item and then take necessary action.

I tried using the eventhandler GotFocus on the panorama item but it doesn't get invoked when the user reaches the item


回答1:


The Panorama control has a SelectionChanged event which is fired when the user pans from one item to the next. You can then use the SelectedItem or SelectedIndex properties to find the item which is currently in view.



来源:https://stackoverflow.com/questions/5854147/is-it-possible-to-know-when-a-particular-panorama-item-is-displayed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!