我正在使用此代码来显示和隐藏标题栏并删除任务栏:
public void EnterFullScreenMode()
{
this.WindowStyle = System.Windows.WindowStyle.None;
this.WindowState = System.Windows.WindowState.Maximized;
IsFullScreen = true;
}
public void ExitFullScreenMode()
{
this.WindowStyle = System.Windows.WindowStyle.SingleBorderWindow;
this.WindowState = System.Windows.WindowState.Normal;
IsFullScreen = false;
}
任务栏的显示\隐藏和标题栏的隐藏工作完美,但标题栏的显示不起作用,我想退出“全屏”模式标题栏被隐藏。
知道可能是什么问题吗?