title: WPF textbox default size is too big?
body: <p>I am new to WPF and have this very simple window:</p>
  
  <pre><code>&lt;Window x:Class="xyz"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:local="clr-namespace:xyz"
          mc:Ignorable="d"
          Height="400" Width="550" ResizeMode="NoResize"
          Closing="Window_Closing"&gt;
      &lt;StackPanel Orientation="Vertical"&gt;
          &lt;Label Margin="150,0,0,0"&gt;Values are saved upon closing this window&lt;/Label&gt;
          &lt;StackPanel Orientation="Horizontal"&gt;
              &lt;Label Width="150"&gt;User Id&lt;/Label&gt;
              &lt;TextBox Width="380" x:Name="txtUserId" Text="{Binding Path=UserId, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" /&gt;
          &lt;/StackPanel&gt;
      &lt;/StackPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Pretty vanilla...why is the textbox rendered too big (height) for the text?</p>
  
  <p><a href="https://i.stack.imgur.com/MgBwc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MgBwc.png" alt="enter image description here"></a></p>