title: How do I use a storyboard for more than 1 target object?
body: <p>I have a c# class, let's call it <code>TwoButtonsHolder</code>. In this class, I have 2 <code>UIElements</code> I wanna animate using StoryBoards. Let's call them <code>ButtonA</code> and <code>ButtonB</code>. Because I wanna have the both of them animate at the same time, I decided to put all their animations in one Storyboard object (or is there a better way?). So right now I'm trying to create the storyboard object in code behind, but I am stuck at the part where I have to define the target property. Normally when I declare animations I use code like this to set the property</p>
  
  <pre><code>Storyboard.SetTargetProperty(myDoubleAnimation,
                               new PropertyPath(UIElement.OpacityProperty));
  </code></pre>
  
  <p>now I have the UIElement within the target Object of the type TwoButtonsHolder. How do I create a storyboard and set the animation target property to <code>TwoButtonsHolder.ButtonA.UIElement.OpacityProperty</code>? Is this bad design for using a single storyboard to animate multiple objects in order to have animation that runs at the same time? (Just FYI, I wanna try this in code behind, don't wanna go into XAML yet because I find it too complicated and hard to learn IMHO). Thank you</p>
  
  <p>Edit: Just wanna add that the 2 buttons have different animations, the only reason I'm putting them in the same storyboard is for them to start animating at the same time</p>