Guidance Control

2

I set the orientation of a page in my app as a landscape, but it was static. If the user flips the 180º screen it continues as a landscape but remains head . How do I turn the screen into landscape when the device is rotated and follow the user's viewing position?

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    this.navigationHelper.OnNavigatedTo(e);
    DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
}
    
asked by anonymous 10.07.2014 / 03:43

1 answer

2

In order for it to work use this way:

Example:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    this.navigationHelper.OnNavigatedTo(e);
    DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped;
}
    
10.07.2014 / 06:50