zoukankan      html  css  js  c++  java
  • wp7 页面方向

        public partial class Page1 : PhoneApplicationPage
        {
            public Page1()
            {
                InitializeComponent();
                this.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape; // 这句话很重要
                OrientationChanged += new EventHandler<OrientationChangedEventArgs>(Page1_OrientationChanged);

            }

         

          // 改变屏幕事件

          void Page1_OrientationChanged(object sender, OrientationChangedEventArgs e)
            {
                if (e.Orientation == PageOrientation.LandscapeLeft
                   || e.Orientation == PageOrientation.LandscapeRight)
                {
                    TitlePanel.Visibility = Visibility.Collapsed;
                }
                else
                {
                    TitlePanel.Visibility = Visibility.Visible;
                }
            }
        }

  • 相关阅读:
    mac下卸载mysql
    mac安装MySQL笔记
    mac安装python3.7.0
    web自动化测试之8大元素定位方法
    postman的下载和使用
    说说性能测试
    jmeter动态修改线程组参数
    服务器性能监控
    性能测试分配堆内存
    nmon分析工具的使用
  • 原文地址:https://www.cnblogs.com/walleyekneel/p/2415981.html
Copyright © 2011-2022 走看看