title: WPF window appearance is not same with design view
body: <p>I create WPF application. I want to create borderless window. For that my code as follow</p>
  
  <pre><code>&lt;Window x:Class="AzLeks.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      ResizeMode="CanMinimize" Height="600.586" Width="826.694" WindowStyle="None" AllowsTransparency="False"
      MouseLeftButtonDown="MainWindow_OnMouseLeftButtonDown" Loaded="Window_Loaded"
      WindowStartupLocation="CenterScreen"&gt;
  
  &lt;!--&lt;Window.Background&gt;
      &lt;ImageBrush ImageSource="images/bckgr.png" /&gt;
  &lt;/Window.Background&gt;--&gt;
  &lt;Window.Resources&gt;
      &lt;Style x:Key="Close" TargetType="Button"&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                  &lt;Setter Property="Cursor" Value="Hand" /&gt;
                  &lt;Setter Property="Background" Value="Red" /&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/Window.Resources&gt;
  
  &lt;Grid Margin="-9,-13,-9,-16" HorizontalAlignment="Center" Background="Transparent" VerticalAlignment="Center" Height="630" Width="845"&gt;
  
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="235*" /&gt;
          &lt;RowDefinition /&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Border CornerRadius="12" BorderBrush="Transparent" BorderThickness="1" &gt;
          &lt;Border.Background&gt;
              &lt;ImageBrush ImageSource="/images/bckgr.png"&gt;&lt;/ImageBrush&gt;
          &lt;/Border.Background&gt;
      &lt;/Border&gt;
       &lt;!--Some Content--&gt;
      &lt;/Grid&gt;
  </code></pre>
  
  <p>In design mode it shown as follow:
  <a href="https://i.stack.imgur.com/xn1h7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xn1h7.png" alt="enter image description here"></a></p>
  
  <p>But after runing the app it shown as:
  <a href="https://i.stack.imgur.com/mCNDT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mCNDT.png" alt="enter image description here"></a>
  I don't know what is a problem here. PLease help me, I can't find solution for this</p>