【问题标题】:How to set and limit page orientation in XAML or code?如何在 XAML 或代码中设置和限制页面方向?
【发布时间】:2017-10-11 11:28:10
【问题描述】:

如何在 XAML 或代码中设置和限制页面方向(适用于 Windows Phone 8.1)?

【问题讨论】:

    标签: c# xaml windows-phone-8.1 orientation


    【解决方案1】:

    你需要做这样的事情......

    void appBarButton_Click(object sender, EventArgs e)
    {
       this.SupportedOrientations = SupportedPageOrientation.Landscape;
       this.Orientation = PageOrientation.Landscape;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多