Wednesday, January 2, 2013

Windows Phone Screen Orientation


In Windows Phone application development, by default the screen is in Portrait mode and we have 3other types supported Screen Orientations,these are as given below :

a)Portrait
b)Landscape(Left)
c)Landscape(Right)


to use the orientation change of the screens within Windows Phone application, in the XAML layout we need to ensure to use SupportedPageOrientation properties. We can use these orientations in page so that for each  page we can specify a different orientation for our need and  better usability. The properties of SupportedPageOrientation can be one of the below :

a)Portrait
b)Landscape
c)PortraitOrLandscape

we just need to add this line in our xaml layout for the appropriate orientation

SupportedOrientations="Portrait" Orientation="Portrait" 

hope it will help you use screen in different orientation.

No comments:

Post a Comment