私には独特の問題があります。SupportedOrientations を SupportedPageOrientation.Landscape に設定すると、方向が自動的に LandscapeLeft に変更されますが、SupportedPageOrientation.Portrait に変更しようとすると、LandscapeLeft のままになります。
protected override async void OnNavigatedTo(NavigationEventArgs e)
{
switch (Settings.OrientationLock)
{
case OrientationLock.Rotate:
this.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
break;
case OrientationLock.HorizontalLock:
this.SupportedOrientations = SupportedPageOrientation.Landscape;
break;
case OrientationLock.VerticalLock:
this.SupportedOrientations = SupportedPageOrientation.Portrait;
break;
}
...
base.OnNavigatedTo(e);
}
前もって感謝します。