Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use the WP7 Panorama control outside of WP7?

I need a WPF control that acts like the Panorama control for Windows Phone 7, but I need it for a desktop application.

It will contain a series of panels (or Panorama Items) that the application will be able to slide through horizontally programmatically.

Also, the content inside the panels not currently displayed on the screen will need to be "lazy loaded". In other words, they should be referenced but not loaded or rendered.

Can I somehow adapt the WP7 Panorama control to do this? Or will I have to develop a custom control from scratch to behave similarly to it?

Thank you!

EDIT: I could probably use a VirtualizingPanel to implement the lazyload behaviour.

like image 942
Michel Carroll Avatar asked Nov 06 '22 01:11

Michel Carroll


2 Answers

MahApps.Metro while still not super mature does allow for the wp7 Panorama control. Demo of how to use a panorama here. I've played with it a little and while its not the most customizable thing out there it gets the job done. Pretty sweet. Also Sacha Barber (Codeproject Demigod) wrote up an article on making your own. Of which I haven't looked at yet but, the guy usually does awesome work. So I'd check that one out as well.

like image 200
Terrance Avatar answered Nov 13 '22 00:11

Terrance


http://blogs.microsoft.co.il/blogs/arielbh/archive/2010/10/21/porting-windows-phone-7-s-panorama-control-to-silverlight-4.aspx gives some clues about how do to this.

It suggests using http://phone.codeplex.com/ as your base and then you can use http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=4b281bde-9b01-4890-b3d4-b3b45ca2c2e4 (Microsoft Surface Manipulations and Inertia Sample for Microsoft Silverlight) to run convert get it to respond to touch.

like image 23
Jonathan Avatar answered Nov 12 '22 23:11

Jonathan