title: Binding to "this.property" object in VisualStateMenager
body: <p>I have problems with binding to this object inside VisualStateMenager. I have XAML structure:</p>
  
  <pre><code>&lt;DataTemplate x:Key="MenuItem"&gt;
      &lt;Border 
          x:Name="myItem"     
          Background="{StaticResource BackgroundColor}"&gt;
          &lt;StackPanel&gt;
              &lt;TextBlock Text="{Binding HeaderText}" /&gt;
              &lt;TextBlock Text="{Binding Text}" /&gt;
          &lt;/StackPanel&gt;
          &lt;VisualStateManager.VisualStateGroups&gt;
              &lt;VisualStateGroup x:Name="my"&gt;
                  &lt;VisualState x:Name="active"&gt;
                      &lt;Storyboard&gt;
                          &lt;ColorAnimation 
                              Storyboard.TargetName="myItem" 
                              Storyboard.TargetProperty="Background.Color"
                              To=" --- BIND TO THIS OBJECT COLOR PROPERTY ---"
                              //To="{Binding Color}" NOT WORK
                              //To="{Binding Color, ElementName=myItem}" NOT WORK
                              //To="red" WORKS
                              Duration=" 0:0:0.1"/&gt;
                      &lt;/Storyboard&gt;
                  &lt;/VisualState&gt;
                  ...
              &lt;/VisualStateGroup&gt;
          &lt;/VisualStateManager.VisualStateGroups&gt;
      &lt;/Border&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>DataContext for DataTemplate must be correct because Binding expression: {Binding HeaderText} and {Binding Text} works prefect. In the same DataContext I have one more property “Color”:</p>
  
  <pre><code>    public string HeaderText { get; set; }
      public string Text { get; set; }
      public string Color { get; set; }
  </code></pre>
  
  <p>I want bind "Color" to "ColorAnimation.To" inside animation, but somehow i lost my dataContext, and receive error:</p>
  
  <blockquote>
    <p>System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Color; DataItem=null; target element is 'ColorAnimation' (HashCode=60716890); target property is 'To' (type 'Nullable`1')</p>
  </blockquote>
  
  <p>Also it's worth to mention that everything else is good, especially state changes. Because if I remove Binding from ColorAnimation, for example write To="red". animations works.</p>