how to enable screen rotation in nokia lumia 820 at the application level

Ritesh Singh1

New member
Feb 19, 2013
3
0
0
hi
I have deployed a application in nokia lumia 820. but the screen rotation is not working . At the phone level the screen rotation is working but in my app it is not working ..how to resolve this problem.....?
 
You need to set the SupportedOrientations property on each page that you want to enable rotation on to PortraitOrLandscape.
 
Screenshot (44).png

Just below that is where you place your content.

[TIP]Different pages have different ideal orientations. SupportedOrientations is how you do this. Here are your options
  • Portrait - Portrait locked. Good for intro pages tbh. This is where the phone is taller than wider
  • Landscape - Landscape locked. Useful for widescreen content. Phone is wider than taller.
  • PortraitOrLandscape - Allows either. Useful for pages requiring the keyboard.
[/TIP]
 
Thanks for the reply..

I have set the SupportedOrientations as portraitOrlandscape . Not the screen is able to rotate both in portarait and landscape as well. but when i am rotating the screen in landscape mode then the width of screen is reduced. in landscape mode the width of screen is same as the width of screen in portrait mode.........(In the main XAML page there is one browser and one vedio brush(for base camera)..i am collapsing the browser when camera feature is called and collapsing the vedio brush while opening the browser...)Can you tell me why it coming like this and how to resolve this problem
 

Members online

Forum statistics

Threads
339,198
Messages
2,262,224
Members
428,752
Latest member
OraliaJacobs