【发布时间】:2017-10-11 11:28:10
【问题描述】:
如何在 XAML 或代码中设置和限制页面方向(适用于 Windows Phone 8.1)?
【问题讨论】:
标签: c# xaml windows-phone-8.1 orientation
如何在 XAML 或代码中设置和限制页面方向(适用于 Windows Phone 8.1)?
【问题讨论】:
标签: c# xaml windows-phone-8.1 orientation
你需要做这样的事情......
void appBarButton_Click(object sender, EventArgs e)
{
this.SupportedOrientations = SupportedPageOrientation.Landscape;
this.Orientation = PageOrientation.Landscape;
}
【讨论】: