Storyboards and Caliburn.Micro

Apr 4, 2011 at 3:24 PM

Hi All,

I have a problem which I need to solve and im struggling with it.
Basically I am developing a WPF application that uses storyboard animation to create a fluid user experience.

One of the issues I have is that I want to delay a call to the view model from the view (a button click for example) until a storyboard has been completed.

So, for example... On the ShellViewModel I have a "ShowDashboard" method and on the ShellView I have a button named "ShowDashboard"... this works as expected, when I click the button the method is called instantly on the view model.


However... when the user clicks the button, I want to play a storyboard to the user (for example... fade the buttons away one by the one over a duration of around 3 seconds).... the problem is that the method is called instantly... changing the ActiveScreen to a new screen and therefore the user is redirected before my animation can complete.

What would be the best way to tackle this situation while sticking with Caliburn Micro? Has anyone else had a simplar problem and solved it?



Thank you in advance.