title: WPF Focus Animation not working properly
body: <p>I have a WPF usercontrol set up in XAML with the following Triggers:</p>
  
  <pre><code>   &lt;UserControl.Triggers&gt;
          &lt;EventTrigger RoutedEvent="GotFocus"&gt;
              &lt;BeginStoryboard&gt;
                  &lt;Storyboard&gt;
                      &lt;DoubleAnimation To="1.5" Storyboard.TargetName="ImageContent" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleX" Duration="0:0:0.8" /&gt;
                      &lt;DoubleAnimation To="1.5" Storyboard.TargetName="ImageContent" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleY" Duration="0:0:0.8" /&gt;
                  &lt;/Storyboard&gt;
              &lt;/BeginStoryboard&gt;
          &lt;/EventTrigger&gt;
          &lt;EventTrigger RoutedEvent="LostFocus"&gt;
              &lt;BeginStoryboard&gt;
                  &lt;Storyboard&gt;
                      &lt;DoubleAnimation To="1" Storyboard.TargetName="ImageContent" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleX" Duration="0:0:0.8" /&gt;
                      &lt;DoubleAnimation To="1" Storyboard.TargetName="ImageContent" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleY" Duration="0:0:0.8" /&gt;
                  &lt;/Storyboard&gt;
              &lt;/BeginStoryboard&gt;
          &lt;/EventTrigger&gt;
      &lt;/UserControl.Triggers&gt;
  </code></pre>
  
  <p>The Animation is working fine but unfortunately the Triggers arent working as expected. The GotFocus trigger only fires if i Right-Click my Control or if i Click a Button that is contained within the UserControl.</p>
  
  <p>I have created an EventHandler for the GotFocus event in code and that seems to fire in the right places.</p>
  
  <p>Edit: If I change it to Fire on MouseEnter / Leave it also works as expected</p>
  
  <p>Edit2: I foudn out that this behaviour is surfacing because the Control gets focus, but loses the focus again right away. I fixed it by adding some code, that checks if the source of the Event is the UserControl or something else.</p>
  
  <p>Any hints on why this is happening would be appreciated.</p>