title: Make WPF Application fullscreen (cover taskbar) reliably
body: <p>I have trouble with getting my app full screen in a way that covers task bar. The code has been unchanged for years and works fine in windows 7 but now moving to windows 10 I see that on different machines the behaviour is different. </p>
  
  <p>Here is what happens on some machines:</p>
  
  <p><a href="https://i.stack.imgur.com/iLZHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iLZHA.png" alt="enter image description here"></a></p>
  
  <p>It is supposed to be fullsrceen from edge to edge without taskbar and instead there is a semi-transparent taskbar. If I switch to windowed mode the size is not scaled down and the taskbar is no longer transparent. Both cases some of the screen is covered by the taskbar.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;controls:MetroWindow x:Class="A...MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
      xmlns:views="clr-namespace:App.Views"
      xmlns:controls1="clr-namespace:App.Controls"
      Title="App" 
      Height="768" 
      Width="1024"
      IgnoreTaskbarOnMaximize="True"  //
      WindowStyle="None"              // This should do the trick
      WindowState="Maximized"         //
      DataContext="{Binding MainWindowViewModel, Source={StaticResource ViewModelLocator}}"
  </code></pre>
  
  <p>I have read <a href="https://stackoverflow.com/questions/3604736/make-wpf-application-fullscreen-cover-startmenu">this</a> and <a href="https://stackoverflow.com/questions/25499393/make-my-wpf-application-full-screen-cover-taskbar-and-title-bar-of-window">this</a> but its not doing the trick. Is it possible that setting the size has something to do with it? I find it weird that it works fine on my dev pc, but on some other machines I get the described behaviour.</p>