Example #1
0
		private void RefreshVisualState(NestViewModelState state) {
			if (state == NestViewModelState.Error) {
				GoToErrorVisualState();
			}
			else if (state == NestViewModelState.LoggedIn) {
				GoToLoggedInVisualState();
				ResetZoom.Begin();
			}
			else if (state == NestViewModelState.LoggingIn) {
				GoToPromptingLoginVisualState();
			}
			else {
				GoToDefaultVisualState();
			}
		}
Example #2
0
 private void RefreshVisualState(NestViewModelState state)
 {
     if (state == NestViewModelState.Error)
     {
         GoToErrorVisualState();
     }
     else if (state == NestViewModelState.LoggedIn)
     {
         GoToLoggedInVisualState();
         ResetZoom.Begin();
     }
     else if (state == NestViewModelState.LoggingIn)
     {
         GoToPromptingLoginVisualState();
     }
     else
     {
         GoToDefaultVisualState();
     }
 }