You can create a separate animation in between states but you can also control the duration...by default I think there is no duration, but you can set up to a 1 second transition duration.
tim heuer | (602) 405-4567 | im: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> blog: http://timheuer.com/blog/ | twitter: @timheuer<http://twitter.com/timheuer> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Price Sent: Thursday, June 26, 2008 9:25 PM To: [email protected] Subject: [OzSilverlight] Visual State Manager Hi, Does anyone know of a good way to switch between two visual states and have a pause between them? if (IsSlideUpVisible) { VisualStateManager.GoToState(this, "SlideUpHidden", true); IsSlideUpVisible = false; } if (!IsSlideUpVisible) { VisualStateManager.GoToState(this, "SlideUpVisible", true); IsSlideUpVisible = true; loadContent(); } I want to hide the slideup if it is visible and then show the slideup again where I then go off and get the data for the page. Problem is that this code just takes me to the visible state. I tried a Thread.Sleep but that's not so shiny on the UI thread. Everything stops (to be expected). Do I have to create a seperate animation of the slide being slid off the page and then back on? cheers, Stephen ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
