I am using a VisualState to "turn a page" in my UI. After the page is turned I want to go back to the state that the window was in before going to the PageTurn state. So the transitions go something like this:
StateDisplayContent -> StateTurnPage -> StateDisplayContent
The only way I could find to do this was is code:
private void TurnPageStoryboard_Completed(object sender, EventArgs e)
{
VisualStateManager.GoToState(this, StateDisplayContent.Name, true);
}
However the state never goes back to StateDisplayContent as expected.
Any ideas?