Microsoft.Phone.Controls.TransitionFrame.EnsureLastTransitionIsComplete C# (CSharp) Метод

EnsureLastTransitionIsComplete() приватный Метод

Stops the last navigation transition if it's active and a new navigation occurs.
private EnsureLastTransitionIsComplete ( ) : void
Результат void
        private void EnsureLastTransitionIsComplete()
        {
            _readyToTransitionToNewContent = false;
            _contentReady = false;

            if (_performingExitTransition)
            {
                Debug.Assert(_storedOldTransition != null && _storedNavigationOutTransition != null);

                // If the app calls GoBack on NavigatedTo, we want the old content to be null
                // because you can't have the same content in two spots on the visual tree.
                if (_oldContentPresenter != null)
                {
                    _oldContentPresenter.Content = null;
                }

                if (_storedOldTransition != null)
                {
                    _storedOldTransition.Stop();
                }

                _storedNavigationOutTransition = null;
                _storedOldTransition = null;

                if (_storedNewTransition != null)
                {
                    _storedNewTransition.Stop();

                    _storedNewTransition = null;
                    _storedNavigationInTransition = null;
                }

                _performingExitTransition = false;
            }
        }