Click here to Skip to main content
Click here to Skip to main content

Remove border from right and bottom of WPF full-screen window

By , 28 Feb 2011
Rate this:
Please Sign up or sign in to vote.
Creating a full-screen 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.
An image example can be seen here: Image example[^]
I have seen some solution on the web talking about Win32 interop and WM_GETMINMAXINFO messages, but is quite simplier Smile | :) : just set the ResizeMode attribute of your Window to NoResize.
You will then end up with this windows:
<Window x:Class=""
       WindowState="Maximized" WindowStyle="None"  ResizeMode="NoResize" >

PS : You can read this tip on my blog[^] too.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Software Developer
France (Metropolitan) France (Metropolitan)
Jonathan creates software, mostly with C#,WPF and XAML.

He really likes to works on every Natural User Interfaces(NUI : multitouch, touchless, etc...) issues.

He is awarded Microsoft MVP in the "Client Application Development" section since 2011.

You can check out his WPF/C#/NUI/3D blog

He is also the creator of the WPF French community web site :

Here is some videos of the projects he has already work on :
Follow on   Twitter

Comments and Discussions

QuestionExcellent! Pinmembersea_cumber25-Feb-13 22:05 
QuestionMany thanks PinmemberRobba10-Jan-13 4:12 
GeneralEdited title and description, added code formatting. PinsubeditorIndivara28-Feb-11 13:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 28 Feb 2011
Article Copyright 2010 by jmix90
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid