title: Background property does not point to a dependencyobject in path '(0).(1)'
body: <p>I wrote this code and got an exception:</p>
  
  <blockquote>
    <p>Background property does not point to a dependencyobject in path '(0).(1)'</p>
  </blockquote>
  
  <p>I saw this problem in other posts in the forum but didn't founded a solution.</p>
  
  <pre><code>&lt;WrapPanel.Style&gt;
    &lt;Style&gt;
      &lt;Style.Triggers&gt;
        &lt;Trigger Property "WrapPanel.Visibility" Value="Visible"&gt;                            
          &lt;Trigger.EnterActions&gt;
            &lt;BeginStoryboard HandoffBehavior="Compose"&gt;
              &lt;Storyboard RepeatBehavior="Forever" AutoReverse="True"&gt;
                &lt;ColorAnimation 
                  Storyboard.TargetProperty="(WrapPanel.Background).(SolidColorBrush.Color)"
                  Duration="00:00:01" To="Red"/&gt;
              &lt;/Storyboard&gt;
            &lt;/BeginStoryboard&gt;
          &lt;/Trigger.EnterActions&gt;
        &lt;/Trigger&gt;
      &lt;/Style.Triggers&gt;
    &lt;/Style&gt;
  &lt;/WrapPanel.Style&gt;
  </code></pre>
  
  <p>Any help with this?</p>