Posts
414
Comments
232
Trackbacks
42
More Windows Phone 7 Panorama Notes

The saga goes on.  There is always something more to learn.  While I thought that ManipulationCompleted would do the trick from me it turned out it won’t.

It turns out that if you want to figure out what PanoramaItem you are on when the user navigates between PanoramaItems the SelectionChanged event in conjunction with the SelectedItem on the Panorama works pretty well.

private void Panorama_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
PanoramaItem item = (PanoramaItem)Panorama.SelectedItem;
if(item.Name == "PanoramaItem1" || item.Name == "PanoramaItem2")
{
// Process the PanoramaItem here
}
}

This combination gives a good technique to identify when the user has swiped the Panorama and which PanoramaItem is now showing.

Now back to your regularly scheduled programming.

posted on Friday, August 12, 2011 4:02 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Comment *  
 

Tim Murphy

Tim is a Solutions Architect for PSC Group, LLC. He has been an IT consultant since 1999 specializing in Microsoft technologies. Along with running the Chicago Information Technology Architects Group and speaking on Microsoft and architecture topics he was also contributing author on "The Definitive Guide to the Microsoft Enterprise Library".



I review for the O'Reilly Blogger Review Program



Technorati Profile

www.flickr.com
Tag Cloud