Geeks With Blogs

News
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

Archives
Tim Murphy's .NET Software Architecture Blog Adventures in Architecting and Developing .NET

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 .NET , Development , Windows Phone 7 | Back to top


Comments on this post: More Windows Phone 7 Panorama Notes

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Tim Murphy | Powered by: GeeksWithBlogs.net | Join free