BrownBot Logo BrownBot Head

Full Screen WPF App

6:43 pm Filed under: Uncategorized

Another quirk in WPF, apparently

<Window Title="MainWindow" WindowState="Maximized" WindowStyle="None">

Is not the same as

<Window Title=”MainWindow” WindowState=”Maximized” WindowStyle=”None” ResizeMode=”NoResize” >

With the former code, I got a full screen app that has a corrupt 1 – 2 pixel border down the far right hand side, this was throwing a spanning in the works for my “fly in” controls on the side.

Adding the “NoResize” fixed it right up.

3 Comments »

  1. Wow. Thanks a lot for that hint. I ran across this issue a few weeks ago and now found this with Google. That really helped me :).

    Comment by Olaf — September 16, 2008 @ 8:22 am

  2. I agree with Olaf, this also helped me. Seems that without putting NoResize on the window, it will create a border that can be used to resize the window. (Can be seen if Maximised is not set).

    Comment by FeLiZk — December 31, 2008 @ 5:06 am

  3. Quick tip : My WPF Fullscreen window still display a border on right and bottom side… how to remove it…

    Creating a fullscreen window in WPF is quite simple 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….

    Trackback by Yet another blog about : WPF, Surface, Win 7, NUI.... — September 23, 2010 @ 8:00 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress