title: WPF exception running animation in another class
body: <p>I can run an animation from the main window class but if I try to run the same code from another class in the same namespace I receive an exception in the storyboard begin function<br>
  this is the exception:<br><br>
  No applicable name scope exists to resolve the name 'DefaultGroup'.<br></p>
  
  <p>this is how I set the storyboard target and property</p>
  
  <pre><code>Storyboard.SetTargetName(r3d,"DefaultGroup");
  Storyboard.SetTargetProperty(r3d, new PropertyPath("(Visual3D.Transform).(Transform3DGroup.Children)[2].(RotateTransform3D.Rotation)"));
  </code></pre>
  
  <p>How can I fix this?
  <br>
  Thanks<br>
  Walther</p>