title: In WPF, how do you set the Style so that when the combobox has focus it does not highlight?
body: <p>I created a FlatCombo Style that I want to apply to a combo box.  The one thing that does not work the way that I want is when the ComboBox has focus.  I want almost no indication that it has focus.  Currently there is a blue highlight on the text area.  I assume this is being picked up from my 3rd party resource dictionary.  How do I adjust my local style so all it shows on focus is a light dashed line?</p>
  
  <p>Thanks,</p>
  
  <p>Dave</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
  
      &lt;Style x:Key="MyFocusVisual"&gt;
          &lt;Setter Property="Control.Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate&gt;
                      &lt;Rectangle Margin="-1" StrokeThickness="1" Stroke="Black" StrokeDashArray="1 2"/&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
      &lt;ControlTemplate x:Key="FlatCombo" TargetType="{x:Type ComboBox}"&gt;
      &lt;ContentControl            
          Content="{TemplateBinding SelectionBoxItem}"            
          ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"            
          ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"            
          Margin="0,0,0,0"  Focusable="True"
  
          /&gt;
  &lt;/ControlTemplate&gt;
  
  &lt;Style TargetType="{x:Type ComboBox}" x:Key="DropDown"&gt;
      &lt;Setter Property="OverridesDefaultStyle" Value="False" /&gt;
      &lt;Style.Triggers&gt;
          &lt;MultiTrigger&gt;
              &lt;MultiTrigger.Conditions&gt;
                  &lt;Condition Property="IsMouseOver" Value="False" /&gt;
                  &lt;Condition Property="IsFocused" Value="False"/&gt;
              &lt;/MultiTrigger.Conditions&gt;
              &lt;Setter Property="Template" Value="{StaticResource FlatCombo}" /&gt;
          &lt;/MultiTrigger&gt;
      &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>        &lt;ComboBox IsSynchronizedWithCurrentItem="True" x:Name="ComboBoxMinute" Width="Auto" 
                Height="Auto" HorizontalAlignment="Center" 
                Background="{Binding Path=Background, ElementName=TextBlockDate, Mode=Default}" 
                BorderBrush="{x:Null}" FontFamily="{Binding Path=FontFamily, 
                ElementName=TextBlockDate, Mode=Default}" 
                FontSize="{Binding Path=FontSize, ElementName=TextBlockDate, Mode=Default}" 
                Foreground="{Binding Path=Foreground, ElementName=TextBlockDate, Mode=Default}" 
                Padding="0,0,0,0" MaxDropDownHeight="200" Style="{StaticResource DropDown}" VerticalContentAlignment="Stretch" 
                VerticalAlignment="Center" FocusVisualStyle="{DynamicResource MyFocusVisual}"/&gt;
  </code></pre>