title: Text box styling
body: <p>Whenever I try to apply a style to a textbox, it becomes unresponsive to user input. Can you tell me a way to solve this?Here is the xaml code I am using:</p>
  
  <pre><code>&lt;Style x:Key="textbox"
         TargetType="TextBox"&gt;
    &lt;Setter Property="OverridesDefaultStyle"
            Value="True" /&gt;
    &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
        &lt;ControlTemplate TargetType="TextBox"&gt;
          &lt;Border BorderThickness="3"
                  Background="{TemplateBinding Background}"
                  Name="border"&gt;
            &lt;ContentPresenter HorizontalAlignment="Center"
                              VerticalAlignment="Center" /&gt;
          &lt;/Border&gt;
          &lt;ControlTemplate.Triggers&gt;
            &lt;Trigger Property="IsMouseOver"
                     Value="True"&gt;
              &lt;Setter TargetName="border"
                      Property="BorderBrush"
                      Value="#9E5971" /&gt;
            &lt;/Trigger&gt;
          &lt;/ControlTemplate.Triggers&gt;
        &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>