Microsoft.Phone.Controls.TransitionFrame.TransitionNewContent C# (CSharp) Method

TransitionNewContent() private method

Transitions the new T:System.Windows.UIElement.
private TransitionNewContent ( ITransition newTransition, NavigationInTransition navigationInTransition ) : void
newTransition ITransition The /// for the new .
navigationInTransition NavigationInTransition The /// for the new .
return void
        private void TransitionNewContent(ITransition newTransition, NavigationInTransition navigationInTransition)
        {
            if (_oldContentPresenter != null)
            {
                _oldContentPresenter.Visibility = Visibility.Collapsed;
                _oldContentPresenter.Content = null;
            }

            if (null == newTransition)
            {
                RestoreContentPresenterInteractivity(_newContentPresenter);
                return;
            }

            EnsureStoppedTransition(newTransition);
            newTransition.Completed += delegate
            {
                CompleteTransition(navigationInTransition, _newContentPresenter, newTransition);
            };

            _readyToTransitionToNewContent = false;
            _storedNavigationInTransition = null;
            _storedNewTransition = null;

            PerformTransition(navigationInTransition, _newContentPresenter, newTransition);
        }