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(); } }