- 不遮挡任务栏实现全屏显示
//在后端代码中设置
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.Height =System.Windows.SystemParameters.MaximizedPrimaryScreenHeight;
this.Width = System.Windows.SystemParameters.MaximizedPrimaryScreenWidth;
- 遮挡任务栏方式全屏显示
WindowState = WindowState.Maximized;
WindowStyle = WindowStyle.None;