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;
                }
            }
        }

  • 相关阅读:
    mysql创建表
    MySql数据类型(转)
    mysql命令总结
    php文件遍历类:FileBianli.class.php
    php文件删除
    php文件复制
    php文件遍历
    php下载c
    智能眼镜的行业应用
    《代谢增长论》读书笔记
  • 原文地址:https://www.cnblogs.com/walleyekneel/p/2415981.html
Copyright © 2011-2022 走看看