title: Mahapps.Metro TextBox - ClearTextButton custom style
body: <p>I am developing my first WPF app and I've decided to use Mahapps.Metro style.
  I have a TextBox like this in one of my views:</p>
  
  <pre><code>&lt;TextBox x:Name="txtMy" Style="{StaticResource My_TxtBox}"
           Controls:TextBoxHelper.Watermark="My..." 
           Controls:TextBoxHelper.ClearTextButton="True"
           Grid.Row="1" Grid.Column="0" /&gt;
  </code></pre>
  
  <p>Note: <code>xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"</code></p>
  
  <p>And this is my style for TextBox:</p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:local="clr-namespace:MyApp.Resources.Styles"&gt;
      &lt;Style x:Key="My_TxtBox" BasedOn="{StaticResource {x:Type TextBox}}" 
             TargetType="{x:Type TextBox}"&gt;
          &lt;Setter Property="VerticalContentAlignment" Value="Center" /&gt;
          &lt;Setter Property="FontSize" Value="15" /&gt;
          &lt;Setter Property="Height" Value="40" /&gt;
          &lt;Setter Property="Margin" Value="4" /&gt;
          &lt;Setter Property="Foreground" Value="White" /&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                  &lt;SolidColorBrush Color="#232228" Opacity="0.6" /&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
          &lt;Setter Property="BorderBrush"&gt;
              &lt;Setter.Value&gt;
                  &lt;SolidColorBrush Color="#1ABC9C" Opacity="0.6" /&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>Now, my question is: How can I add custom style to ClearTextButton, i.e. I want to change background color of ClearTextButton while it is hovered or when it is pressed? How can I do it?</p>
  
  <p>I am asking this because I haven't found anything similar to this on internet.</p>
  
  <p>Thanks in advance</p>