Is it possible to know when a particular panorama

2019-04-07 15:51发布

问题:

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.