title: changing background color of container when textbox is in focus
body: <p>I have a simple user control with a <code>TextBox</code>. I want to change the color of user control when the <code>TextBox</code> gets the focus.  This is what I have:</p>
  
  <pre><code>&lt;UserControl x:Class="OutLookContactList.ContactSearchControl"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Name="root" MinHeight="30" Loaded="UserControl_Loaded"&gt;
  
  &lt;UserControl.Resources&gt;
  
      &lt;Style x:Key="searchTextBoxStyle" TargetType="{x:Type TextBox}"&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="IsFocused" Value="true"&gt;
                  &lt;Setter TargetName="root" Property="Background" Value="{StaticResource OnMouseOverColor}" /&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>But I get the errot "TargetName property cannot be set on a style Setter". How can I Set the back ground color of user control when text box gets the focus?
  Thanks a bunch</p>