BeginAnimation for Silverlight 2

Here’s a version of the BeginAnimation extension method, updated for Silverlight 2:     static class SilverlightHelpers    {        public static void BeginAnimation(this FrameworkElement obj, DependencyProperty property, DoubleAnimation animation)        {            var storyboard = new Storyboard();            storyboard.Children.Add(animation);            Storyboard.SetTarget(storyboard, obj);            Storyboard.SetTargetProperty(storyboard, new PropertyPath(property));            storyboard.Begin();        }    } Cut-and-paste that baby into your project, and through the magic of C# extension methods,…

1