Page 1 of 1

Storyboard "on start" event?

Posted: 21 Oct 2014, 17:03
by Frodo

I realised that storyboards have a "completed"event, but I did not find any kind of "on start" event.
Is there another way to call a method when a particular storyboard starts?

Thank you for your help.

Re: Storyboard "on start" event?

Posted: 22 Oct 2014, 19:37
by sfernandez
Sorry, but we don't provide any event for that.

How do you trigger a Storyboard to start? Who is responsible to begin that Storyboard?
Maybe you can expose an event in the class that is in charge of launching these animations.
Another solution may be declaring a boolean dependency property that you set to true when animation is started, so you get notified in the PropertyChangedCallback and can do whatever you want.

Re: Storyboard "on start" event?

Posted: 07 Nov 2014, 07:06
by sarakhan
Is there anything missing

Re: Storyboard "on start" event?

Posted: 07 Nov 2014, 07:51
by Frodo
No, I don't think so. Actually it is possible to store a lot in the storyboard it self, so in most cases an "on start" event is not needed. Anyway, in the meantime I could solve my problem.

Re: Storyboard "on start" event?

Posted: 07 Nov 2014, 11:21
by jsantos
Note that we do not provide this event because it is not available in WPF. Although there are several events in the Clock that could be used to indirectly get that information we don't have them implemented because as Sergio said there are alternatives to the functionality you require.