title: WPF puts a white gap around a label
body: <p>I have a grid inside a grid, that has a label inside. When I leave the label's padding as it is, everything's fine. But when I set the padding to 0, this happens:</p>
  <p><a href="https://i.stack.imgur.com/FL79O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FL79O.png" alt="Border around Label" /></a></p>
  <p>(There's not supposed to be a white border there)<br>
  Here's my XAML code:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width=&quot;0.2*&quot;&gt;&lt;/ColumnDefinition&gt;
          &lt;ColumnDefinition Width=&quot;0.8*&quot;&gt;&lt;/ColumnDefinition&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height=&quot;0.02*&quot;&gt;&lt;/RowDefinition&gt;
          &lt;RowDefinition Height=&quot;0.98*&quot;&gt;&lt;/RowDefinition&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid VerticalAlignment=&quot;Center&quot; Margin=&quot;0px&quot; x:Name=&quot;TitleBar&quot; Background=&quot;#121212&quot; Grid.ColumnSpan=&quot;2&quot; Grid.Row=&quot;0&quot;&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width=&quot;0.2*&quot;&gt;&lt;/ColumnDefinition&gt;
          &lt;ColumnDefinition Width=&quot;0.6*&quot;&gt;&lt;/ColumnDefinition&gt;
          &lt;ColumnDefinition Width=&quot;0.2*&quot;&gt;&lt;/ColumnsDefinition&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Label Padding=&quot;5px 0px 0px 0px&quot; Grid.Column=&quot;0&quot; Grid.Row=&quot;0&quot; Foreground=&quot;White&quot;&gt;WorkChatApp&lt;/Label&gt;
      &lt;/Grid&gt;
      &lt;ScrollViewer x:Name=&quot;Channels&quot; Background=&quot;#232323&quot; Grid.Column=&quot;0&quot; Grid.Row=&quot;1&quot; VerticalScrollBarVisibility=&quot;Auto&quot; HorizontalScrollBarVisibility=&quot;Auto&quot;&gt;&lt;/ScrollViewer&gt;
      &lt;ScrollViewer x:Name=&quot;Messages&quot; Grid.Column=&quot;1&quot; Grid.Row=&quot;1&quot; VerticalScrollBarVisibility=&quot;Auto&quot; HorizontalScrollBarVisibility=&quot;Auto&quot;&gt;&lt;/ScrollViewer&gt;
  &lt;/Grid&gt;
  </code></pre>