Hooking up to the animation repetition

I was wondering is there any way of hooking up to the animation repetition by the event.

I have an animation which has theRepeatBehaviorset toForeverand I would like to create a handlerfired when the animation is repeated. I’ve searched the MSDNand the net, but unfortunately haven’t found the solution:/


Could anyone help me please? Thanks in advanceSmile

[732 byte] By [Rstr] at [2008-1-8]
# 1

I think you'll have to set RepeatBehavior to 1, and manually start the animation again whenever it's completed...

private void MyStoryboard_Completed(object sender, EventArgs e)

{

//Your handling code for when the animation is "repeated" here...

//Begin the storyboard once again.

MyStoryboard.Begin(this);

}

Yi-LunLuo-MSFT at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified