kearney

自学还没成才的python猿

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
        /// <summary>
        /// 设置窗体在屏幕的位置
        /// </summary>
        public void WinPosition()
        {
            double ScreenWidth = System.Windows.SystemParameters.PrimaryScreenWidth;//WPF
            this.Top = this.ActualWidth / 5;
            this.Left = ScreenWidth - this.ActualWidth *1.3;
        }

 

posted on 2016-11-25 16:42  Gino森  阅读(8485)  评论(0编辑  收藏  举报