2
Vote

page transition complete event

description

I'm navigating from Page1 to Page2. Both pages uses Turnstile animation that's part of toolkit. Page2 shows a loading progress bar till my webservice call is over. I'm setting the isindeterminate property of this progress bar to true in OnNavigatedTo event of Page2 and setting it to false once the webservice completes. However, when I actually run the application, it transitions from Page1 to Page2, doesn't show me the progress bar and then finally loads the data after sometime. I figured out that the OnNavigatedTo event is getting triggered before the animation completes. So it is not setting the property at all. If I remove the animation, it works fine. Is there any event that gets triggered after the animation is complete?

comments

jeffwilcox wrote Aug 15, 2011 at 5:53 PM

The navigation events will happen before the animation, but there are various 'Completed' events you should be able to connect to - though it might take some work to do properly in code.

Lavinski wrote Jul 9, 2012 at 11:22 PM

I had the same question you did, if the version of silverlight you are using has the TransitionService class you can use it to hook into the completed event.

http://lavinski.tumblr.com/post/26863266871/silverlight-page-transition-complete-event