Beispiel #1
0
        /// <summary>
        /// 设置页面位置
        /// </summary>
        private void fullScreen()
        {
            //隐藏Windows任务栏
            SysBLL.ShowWindow(SysBLL.FindWindow("Shell_TrayWnd", null), SysBLL.SW_HIDE);
            //显示Windows任务栏
            //SysBLL.ShowWindow(SysBLL.FindWindow("Shell_TrayWnd", null), SysBLL.SW_RESTORE);
            this.WindowState = System.Windows.WindowState.Normal;
            this.WindowStyle = System.Windows.WindowStyle.None;
            this.ResizeMode  = System.Windows.ResizeMode.NoResize;

            this.Topmost = true;

            this.Left   = 0.0;
            this.Top    = 0.0;
            this.Width  = System.Windows.SystemParameters.PrimaryScreenWidth;
            this.Height = System.Windows.SystemParameters.PrimaryScreenHeight;
            ClsWin32.HideTask(true);
        }
Beispiel #2
0
 private void btnSwitchFullScreen_Click(object sender, EventArgs e)
 {
     ClsWin32.SwitchFullScreen(this);
 }
Beispiel #3
0
 public void ShowTask(bool show)
 {
     ClsWin32.ShowTask(show);
 }