storyborad code behind not working

Jul 6, 2009 at 7:30 PM

I tried to attach the storyboard in code behind, the animation work when it apps starts. but inside the code behind, it hings, very simple std code behind

 

 

//* ***************************************

<font size="2">

System.Windows.Media.Animation.

</font>

 

Storyboard sb = new System.Windows.Media.Animation.Storyboard();

sb = this.FindResource("Storyboard1");<font size="2">

sb.Begin(t

</font>

his);

//****************************************

any idea?

Thanks in advance

Jul 7, 2009 at 1:56 AM

Thanks, find the solution