Full Screen WPF App

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 thoughts on “Full Screen WPF App

  1. Olaf Reply

    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 :).

  2. FeLiZk Reply

    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).

  3. Pingback: Yet another blog about : WPF, Surface, Win 7, NUI....

Leave a Reply

Your email address will not be published. Required fields are marked *