title: Changing StackPanel Background color with ColorAnimation
body: <p>Well, I'm trying to change the Background color of a StackPanel in a DataTemplate using ColorAnimation:</p>
  
  <pre><code>    &lt;DataTemplate DataType="{x:Type logic:Sensor}"&gt;
          &lt;StackPanel Name="SensorPanel" MouseDown="SensorPanel_MouseDown"&gt;
          &lt;/StackPanel&gt;
          &lt;DataTemplate.Triggers&gt;
              &lt;DataTrigger Binding="{Binding Status}" Value="0"&gt;
                  &lt;!--&lt;Setter TargetName="SensorPanel" Property="Background" Value="LawnGreen" /&gt;--&gt;
  
                  &lt;DataTrigger.EnterActions&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard&gt;
                              &lt;ColorAnimation 
                                  Storyboard.TargetName="SensorPanel" 
                                  Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"
                                  To="LawnGreen" Duration="0:0:0.25" AutoReverse="True" RepeatBehavior="4"&gt;
                              &lt;/ColorAnimation&gt;
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/DataTrigger.EnterActions&gt;
  
              &lt;/DataTrigger&gt;
          &lt;/DataTemplate.Triggers&gt;
      &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>No Compile-Time Errors. But when I run this an InvalidOperationException is thrown: "'Background' property does not point to a DependencyObject in path '(0).(1)'."</p>
  
  <p>What? :D</p>