在全屏 WPF 上隐藏任务栏
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13729461/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Hide Taskbar on fullscreen WPF
提问by tom.maruska
recently i had tried to make task-bar invisible in maximize mode but unfortunately nothing worked.
i had some research over MSDN and stack overflow and most of them said make window border equal to none and maximize window.but it didn't worked.
BTW: i am using Metro-window and it has a hide task-bar functionality by itself.but it didn't worked either.
最近我试图在最大化模式下使任务栏不可见,但不幸的是没有任何效果。
我对 MSDN 和堆栈溢出进行了一些研究,他们中的大多数人说使窗口边框等于无并最大化窗口。但它没有用。
顺便说一句:我正在使用 Metro-window 并且它本身具有隐藏任务栏功能。但它也不起作用。
回答by tom.maruska
My experience on Windows 8.1 is that setting WindowStyle="None" WindowState="Maximized"(as most people say) is not enough.
我在 Windows 8.1 上的经验是设置WindowStyle="None" WindowState="Maximized"(正如大多数人所说)是不够的。
To hide taskbar I had to set ResizeMode="NoResize"
要隐藏任务栏,我必须设置 ResizeMode="NoResize"

