title: Common Style for PasswordBox and TextBox
body: <p>How can I define a common Style for the TextBox and the PasswordBox?</p>
  
  <p>My approach, I have define a Style for the TargetType FrameworkElement but this doesnt work as common style, then few propertys doesnt exist on the FrameworkElement.</p>
  
  <p>My TextBox Style is equals the PasswordBoxStyle</p>
  
  <pre><code>&lt;Style TargetType="{x:Type TextBox}"&gt;
      &lt;Setter Property="SnapsToDevicePixels" Value="True"/&gt;
      &lt;Setter Property="OverridesDefaultStyle" Value="True"/&gt;
      &lt;Setter Property="KeyboardNavigation.TabNavigation" Value="None"/&gt;
      &lt;Setter Property="FocusVisualStyle" Value="{x:Null}"/&gt;
      &lt;Setter Property="MinHeight" Value="30"/&gt;
      &lt;Setter Property="AllowDrop" Value="true"/&gt;
      &lt;Setter Property="FontFamily" Value="Verdana"/&gt;
      &lt;Setter Property="FontSize" Value="14"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type TextBox}"&gt;
                  &lt;Border Name="Border" CornerRadius="4" Padding="2" Background="White" BorderBrush="Black" BorderThickness="1" &gt;
                      &lt;ScrollViewer Margin="0" x:Name="PART_ContentHost"/&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>