title: How to redefine FocusVisualStyle for a WPF user control
body: <p>I'm trying to redefine <code>FocusVisualStyle</code> for a user control (to make it more obvious in webexes) and it isn't working. Can't I just slap</p>
  
  <pre><code>&lt;Style x:Key="{x:Static SystemParameters.FocusVisualStyleKey}"
         TargetType="Control"&gt;
      &lt;Setter Property="Control.Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate&gt;
                  &lt;Rectangle Margin="-3" 
                             StrokeThickness="2"
                             Stroke="Red"
                             SnapsToDevicePixels="true" /&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  &lt;Style TargetType="Control"&gt;
      &lt;Setter Property="FocusVisualStyle"
              Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>into my code (in <code>UserControl.Resources</code>)? That doesn't work, though.</p>
  
  <p>It works when I explicitly set the focus visual style on a particular control:</p>
  
  <pre><code>&lt;RadioButton GroupName="rbGroup" TabIndex="30" 
          FocusVisualStyle="{StaticResource {x:Static SystemParameters.FocusVisualStyleKey}}"&gt;
      Choice A
  &lt;/RadioButton&gt;
  </code></pre>
  
  <p>What have I missed?</p>