Windows Phone and PhoneGap – Article #9 – Handling Orientation – Part 1

If you have noticed the PhoneGap Windows Phone Project , you will find a MainPage.XAML page where the PhoneGap runs .

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

By Default , the Windows Phone Silverlight Application runs in the Portrait mode .

To support the Windows Phone PhoneGap application to support both the orientation ( Portrait and Lanscape ) , follow the below steps

1. Double click on the MainPage.XAML page in the solution explorer

2. In the Properties Window of the MainPage.xaml , modify the SupportedOrientations to PortraitOrLandScape .

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

3. Now , run the project , you should see both the Orientation (LandScape and Portrait) supported in your Windows Phone App . 

 

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

Windows Phone and PhoneGap - Article #9 - Handling Orientation - Part 1

 

Share