(aka Windows Presentation Foundation aka Avalon aka XAML)
WindowState = WindowState.Normal; WindowStyle = WindowStyle.None; Topmost = true; WindowState = WindowState.Maximized;
That’s it, nice and easy. Setting WindowState to normal before and then maximized after fixed an issue where it was fullscreen, but didn’t expand to cover the taskbar.
I did this in order to make a patch for Big Visible Cruise, a new app that displays CruiseControl.net statuses in a big noticeable window. (Issue 14)
I got some ideas from this forum post on the MSDN forums.
Big Visible Cruise is hosted on Google Code. I’d never used it before, but it was really easy and simple to log in, add a comment, and attach a patch.
Pingback: Covering entire screen in WPF applications | keyongtech
Hmm, this “workaround” doesn’t work.. My app still covers the taskbar.. Any other ideas?
Thanks, clean, simple, and stable.
Thank you for your post but I have a problem when using this:
When I switch to fullscreen mode, there are 2px from right and bottom of the screen uncovered! I checked my window size when maximized, and it was ok (1280×800 as my screen is), but Left and Top value of the window are -7 and -7, and I cant change it! what can I do?
thanks
Try adding these properties to your window, worked for me!
AllowsTransparency=”True” Background=”Transparent”