Search code examples
windows-phone-7panorama-control

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


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


Solution

  • 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.