Skip to main content
Home Forums Silverlight Programming Programming with .NET - General RC1 now has issue with Storyboard.SetTarget
1 replies. Latest Post by metal on October 17, 2008.
(0)
kemaltolga
Member
140 points
113 Posts
10-16-2008 2:05 PM |
I upgraded my Silverlight 2 beta 2 project to Silverlight 2. I fixed all compilation errors, but I am still having a run-time issue with Storyboard.SetTarget...
Storyboard
with error message: "Operation is not valid on an active Animation or Storyboard. Root Storyboard must be stopped first."
here is my Silverlight 2 beta 2 code....
{
s.Begin();
}
any ideas what I need to fix.
Thanks
--tolga
metal
Participant
1243 points
262 Posts
10-17-2008 10:03 AM |
In all my Dynamic animation code I use
Storyboard.SetTarget(Anim,obj);
Where Anim is usually a DoubleAnimation and Obj is the target object.
then the Storyboard object has the Anim added to its Children
MyStoryboard.Children.Add(Anim); MyStoryboard.Begin();
but I would have though your way would work just as well.