WPF Visual States and the transitions between them
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-04-12T05:08:08Z
Indexed on
2010/04/12
5:13 UTC
Read the original article
Hit count: 357
wpf
|visualstatemanager
I'm trying to define many different states in my app (around 7 in my case) and I have defined each one of them with a "Default Transition" of zero seconds, but the animation that accompanies each state goes for 1 second.
When I fire up my app I have a button than goes through the states one by one, when I go "State1" -> "State2" it looks perfect, but when I tell my app (which should be in State2 now) to go to "State3" it reverts all the objects in my scene back to their base state, and then animates to "State3", why doesnt it go from "State2" to "State3".
I was hoping to only define each state's end position without defining a starting position as this would really take a long time to do.
Can this be done? Any examples?
Cheers, Mark
© Stack Overflow or respective owner