title: Change TextBox Template without losing classic behavior
body: <p>I've create a custom control which inherit from WPF TextBox.</p>
  
  <p>My Control Template simply add a small button on textbox in order to delete its text quicker.</p>
  
  <p>However, I've noticed that when my textBox got the focus, its border doesn't change (blue color) as is the case for classic textbox. </p>
  
  <p>I would preserver all aspect of original textBox, just like the border when the control get focus.</p>
  
  <p>Am I missing something?</p>
  
  <p>@@EDIT</p>
  
  <pre><code>&lt;TextBox x:Class="XTextBox.WKTextBox"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           mc:Ignorable="d" 
           Height="23" Width="200"
           &gt;
  
  
  
  &lt;TextBox.Resources&gt;
      &lt;ControlTemplate x:Key="IconButton" TargetType="{x:Type ToggleButton}"&gt;
          &lt;Border&gt;
              &lt;ContentPresenter /&gt;
          &lt;/Border&gt;
      &lt;/ControlTemplate&gt;
  &lt;/TextBox.Resources&gt;
  
  &lt;TextBox.Style&gt;
  
      &lt;Style TargetType="TextBox"&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="{x:Type TextBox}"&gt;
                      &lt;Grid&gt;
                          &lt;Border BorderThickness="1" BorderBrush="DarkGray"&gt;
                              &lt;ScrollViewer x:Name="PART_ContentHost" /&gt;
                          &lt;/Border&gt;
                          &lt;ToggleButton Template="{StaticResource IconButton}"
                            MaxHeight="21" 
                            Margin="-1,0,0,0" 
                            Name="imgButton" 
                            Focusable="False"
                            IsChecked="False"&gt;
  
                              &lt;Image Name="imgClearText" Source="Images\x.png" Stretch="Uniform" Opacity="0.5" Visibility="Visible" HorizontalAlignment="Right"  &gt;
                              &lt;/Image&gt;
  
                          &lt;/ToggleButton&gt;
  
                      &lt;/Grid&gt;
  
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
  &lt;/TextBox.Style&gt;
  </code></pre>
  
  <p></p>