Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full Screen Window in WPF

Tags:

c#

wpf

I am developing an application in c# using WPF. I am using

Height="768" Width="1366" Loaded="WindowLoaded" 
WindowStyle="ToolWindow" WindowState="Maximized" 

parameters. Now to create full screen I change the WindowStyle to None. This does make it full screen but the close button disappears. Also the full screen doesn't cover the taskbar. Any suggestions?

like image 748
pxjcode Avatar asked Feb 11 '23 22:02

pxjcode


1 Answers

With WPF you almost never must define Width and Height properties. WPF will render your screens much better by using relative sizes. So if you want a full screen ToolWindow which covers the taskbar use:

WindowStyle="ToolWindow" ResizeMode="NoResize" WindowState="Maximized"

in your xaml.

like image 136
Ric .Net Avatar answered Feb 13 '23 20:02

Ric .Net