title: Get rid of button red border in WPF?
body: <p>I am re-asking a similar question that has been asked.  The answers didn't seem to work in my particular case.  I have included details.</p>
  
  <p>I have a ComboBox and within the ComboBox each item has a ToggleButton.  When I click on the ToggleButton there is a red outline that I want to get rid of.  How can I remove the red outline around the button?  In the ControlTemplate I am setting BorderThickness=”0”,  BorderBrush=”Transparent”, Focusable=”false”.  These were all things that other posts had mentioned.</p>
  
  <pre><code>&lt;!--Xaml for ComboBox: --&gt;
  &lt;TimestampComboBox 
    Style="{DynamicResource PlotComboBoxStyle}"
    IsSynchronizedWithCurrentItem="True"
    …
  &gt;
    &lt;TimestampComboBox.ItemsSource &gt;…
    &lt;/TimestampComboBox.ItemsSource&gt;
    &lt;TimestampComboBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
        &lt;StackPanel Orientation="Vertical"&gt;
          &lt;DockPanel Width="174" LastChildFill="False"&gt;
            &lt;ToggleButton DockPanel.Dock=
              Style="{DynamicResource SampleAddToggleButtonStyle}"
            &gt;
              &lt;ToggleButton.Content&gt;
                &lt;Rectangle Height="10" Width="10"/&gt;
              &lt;/ToggleButton.Content&gt;
            &lt;/ToggleButton&gt;
          &lt;/DockPanel&gt;
        &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
    &lt;/TimestampComboBox.ItemTemplate&gt;
  &lt;/TimestampComboBox&gt;
  
  &lt;!--SampleAddToggleButtonStyle: --&gt;
  &lt;Style x:Key="SampleAddToggleButtonStyle" TargetType="{x:Type ToggleButton}"&gt;
    &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
        &lt;ControlTemplate TargetType="{x:Type ToggleButton}"&gt;
          &lt;Border Name="border" BorderThickness="0" BorderBrush="Transparent"&gt;
            &lt;ContentPresenter Content="{TemplateBinding Content}" /&gt;
          &lt;/Border&gt;
          &lt;ControlTemplate.Triggers&gt;
             …
          &lt;/ControlTemplate.Triggers&gt;
        &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>