I've changed the duration of the changing state and it works if I change to one state. It's only a problem if I change to one state then change back to the first state. It's almost as if it's not changing at all, but I think it is changing, starting the animation, then changing back, and then animating back to the first state (which due to the speed the two commands are run looks like it never moved)
I'll have a look into the custom animations. I might need another state which has the slideout then back in animation attached. cheers, Stephen On Fri, Jun 27, 2008 at 12:36 PM, Tim Heuer <[EMAIL PROTECTED]> wrote: > 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] > > *blog*: http://timheuer.com/blog/ | *twitter: [EMAIL > PROTECTED]<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 ------------------------------------------------------------------- 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
