title: How do I create a Style within a WPF UserControl?
body: <p>I want to set the style of some controls on my UserControl, but can't seem to find the right syntax:</p>
  
  <pre><code>&lt;UserControl x:Class="HiideSRM.WIDSModule.BiometricStatusIndicator"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  &gt;
  
      &lt;Style TargetType="{x:Type Border}"&gt;
          &lt;Setter  Property="Width" Value="10"/&gt; 
      &lt;/Style&gt;
      &lt;StackPanel Orientation="Horizontal" x:Name="Panel"&gt;
          &lt;Border Height="50" Margin="1"/&gt;
          &lt;Border Height="10" Margin="1"/&gt;
          &lt;Border Height="10" Margin="1"/&gt;
          &lt;Border Height="10" Margin="1"/&gt;
      &lt;/StackPanel&gt;
  
  &lt;/UserControl&gt;
  </code></pre>