(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Forcing Orientation in WinRT

(0 votes)
0 comments   /   posted by Silverlight Show on Jun 24, 2013
Tags:   winrt , windows-8 , shawn-wildermuth
Read original post at Shawn Wildermuth's Blog

I am working with a client on an enterprise Win8 app that is for order taking. They have a specific page that they require to be only in Portrait mode while the rest of the app can support any orientation. Since I've done so much Windows Phone 7/8 work I thought this would be simple. Just specify the value on the Page. But this didn't work…

Digging through the docs I found a probable solution: DisplayProperties.AutoRotationPreferences (in the Windows.Graphics.Display namespace). The docs specify that this property can be set with the DisplayOrientations enumeration to specify which of the four orientations to support.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter