title: WPF Animate property of child without using Name
body: <p>I'm trying to create a storyboard in XAML that animates a property of one of the child elements of an element which raises an event. But I can't seem to get it to work without using Names, which is something I can't really do in this specific situation.</p>
  
  <p>I'm basically trying something like this (much simplified of course):</p>
  
  <pre><code>   &lt;Canvas&gt;
        &lt;Canvas.Triggers&gt;
           &lt;EventTrigger RoutedEvent="FrameworkElement.Loaded"&gt;
              &lt;EventTrigger.Actions&gt;
                 &lt;BeginStoryboard&gt;
                    &lt;Storyboard&gt;
                       &lt;DoubleAnimation Storyboard.TargetProperty="Children[0].(Canvas.Left)" From="0" To="400" /&gt;
                    &lt;/Storyboard&gt;
                 &lt;/BeginStoryboard&gt;
              &lt;/EventTrigger.Actions&gt;
           &lt;/EventTrigger&gt;
        &lt;/Canvas.Triggers&gt;
  
        &lt;Button Canvas.Left="20" Canvas.Top="20"&gt;A&lt;/Button&gt;
        &lt;Button Canvas.Left="40" Canvas.Top="20"&gt;B&lt;/Button&gt;
     &lt;/Canvas&gt;
  </code></pre>
  
  <p>Any ideas on how this could be achieved?</p>