title: How do I create a simple panorama application for Windows Phone 7 using PhoneGap/Cordova?
body: <p>I've looked around and found several examples of PhoneGap/Cordova-based HTML5 applications for Windows Phone 7, but none of them seem to show you how to make a panorama or a pivot style app, which are some of the main draws of the UI of the OS. I'm looking to build an app that works like these:</p>
  <p>Panorama:</p>
  <p><img src="https://i.stack.imgur.com/ZuhpT.jpg" alt="Windows Phone 7 Panorama example" /></p>
  <p>Pivot:</p>
  <p><img src="https://i.stack.imgur.com/HCh0B.png" alt="Windows Phone 7 Pivot example" /></p>
  <p>I want to build these apps using plain HTML5, CSS3 and JS and use PhoneGap Build to deploy them. I do not wish to use Visual Studio. VS offers two separate controls for panorama or pivot layouts, but in HTML5, there should be just one slider control which can be used for both, with a tweak to allow for a multi-screen column like the 'second item' page in the first example.</p>
  <p>I also looked for some IE9-compatible jQuery slider plugins that I could tweak, but 90% of them don't work and the rest are a little too different to try and adapt. For example, this <a href="http://jquerymobile.com/demos/1.1.1/docs/pages/page-transitions-page.html" rel="noreferrer">jQuery page slide (sideways) transition</a> works fine in every browser, but degrades to a basic slide up-type effect in the WP7 browser.</p>
  <p>I am targeting multiple OSes, but I don't want to replicate the same interface across all. The data source will be common, but I want them to look like natively designed applications on each OS.</p>
  <p><strong>Update 1:</strong></p>
  <p>Found <a href="http://www.zackgrossbart.com/hackito/touchslider/" rel="noreferrer">a scroller/slider plugin</a> that actually responds to touch events on IE Mobile on WP7, but it doesn't snap to the edge of each panel, which is an important aspect of the pano/pivot controls.</p>
  <p>Also checked out <a href="http://xuijs.com" rel="noreferrer">XUI</a>, which has a plugin called Swipe to detect swipe/tap events, but even with &quot;xui-ie-2.3.2.min.js&quot;, the sample does absolutely nothing in IE Mobile.</p>
  <p><strong>Update 2:</strong></p>
  <p>The closest I've come to finding something like this is the promising <a href="http://www.jqmetro.com" rel="noreferrer">jqMetro</a> add-on. It gives you a full-on Metro style including panorama, pivot and native-looking controls, but the most ironic part is that the swipe features don't work on IE Mobile, which means it won't work in the PhoneGap'd application. Tapping on the pivot headings works and switches to that view just fine.</p>
  <p><strong>Update 3:</strong></p>
  <p>Gave up hybrid app development altogether! :-)</p>