Covering entire screen in WPF applications

  • Thread starter Thread starter Norton
  • Start date Start date
N

Norton

Hello,
I have a WPF application and, based on certain configuration, it needs to
cover the entire screen, including the taskbar. It is easy to do by setting
WindowState to Maximized. The problem occurs when some message box from
another application pops up, then the taskbar becomes visible. For example,
if I execute "net send" to my computer, and click somewhere on the message
box, the taskbar shows up.
I was wondering if there is an easy way to handle this case, or this would
require handling WM_PAINT notifications in my own WindowProc handler?

I would appreciate any help on this!

Thanks,
Norton.
 
Unfortunately I cannot see what it has since the content is covered. I
believe they suggest to set WindowState to Normal, and then back to
Maximized. This works for certain use cases but not the one in my post.
 
Thanks for the reply,

I use WindowStyle.None, - it is with this style that WindowState.Maximized
covers the entire screen. I tried to use Topmost but it doesn't help since
the TaskBar is also a Topmost window. Also, by setting my main window as
Topmost, my own child windows are now longer visible. So, setting Topmost to
true is not going to work for me.
 
Back
Top