Quick tip : My WPF Fullscreen window still display a border on right and bottom side... how to remove them
23 September 2010Creating a fullscreen window in WPF is quite simple, you just have to set WindowState to Maximized and WindowStyle to None.
But in my current project I was facing a little drawback : a border was still visible on the bottom and on the right side of my window :
I have seen some solution on the web talking about Win32 interop and WM_GETMINMAXINFO messages, butit is quite simplier : just set the ResizeMode attribute of your Window to ''NoResize''. You will then end up with this windows :
<Window x:Class="lexiqueDuNet.com.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowState="Maximized" WindowStyle="None" ResizeMode="NoResize" > </Window>