WPF Windows Docking that affects other windows in Maximized mode

。_饼干妹妹 提交于 2019-12-13 02:54:14

问题


I'm writing a WPF project that is effectively a ticker that runs at the bottom of the screen, above the taskbar. I need the ticker to:
1) Reside directly above the taskbar
2) Stay on top of all other windows
3) To continue to do so if the taskbar is set to auto-hide, without obstructing the taskbar
4) Make it so that other windows, which are maximized, don't occupy the space behind the ticker. So it should behave the same way as the task bar, in that it occupies permanent desktop space, which no other applications can use.

Currently, the previous developer just set the ticker by finding the screen size, and putting at the bottom by getting the screen size minus the ticker height, and setting that value to the Top of the WPF window. But that doesn't work for numbers 3 and 4 above. Number 2 is easy enough, just set TopMost="True"

I've seen some posts about docks and stickiness and huddled masses, but I don't think they're doing exactly what I need. Does anyone know how to accomplish what I'm trying to do?


回答1:


For anyone who cares, it turns out I wasn't searching for the correct terms. What I wanted is called an AppBar. The solution I found is here: stackoverflow.com/questions/75785/… The solution works perfectly.



来源:https://stackoverflow.com/questions/10353577/wpf-windows-docking-that-affects-other-windows-in-maximized-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!