OnTransitionedFromInternalAsync() private method

private OnTransitionedFromInternalAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
コード例 #1
0
        private async Task TransitionBackward(
            AlternativePage currentPage,
            AlternativePage newPage,
            ContentPresenter previousPagePresenter,
            ContentPresenter newPagePresenter)
        {
            var transition = currentPage != null ? (currentPage.PageTransition ?? this.PageTransition) : this.PageTransition;

            if (transition != null)
            {
                if (currentPage != null)
                {
                    await currentPage.OnTransitioningFromInternalAsync();
                }

                if (newPage != null)
                {
                    await newPage.OnTransitioningToInternalAsync();
                }

                await transition.TransitionBackward(previousPagePresenter, newPagePresenter);

                if (currentPage != null)
                {
                    await currentPage.OnTransitionedFromInternalAsync();
                }

                if (newPage != null)
                {
                    await newPage.OnTransitionedToInternalAsync();
                }
            }
        }
コード例 #2
0
        private async Task TransitionBackwardAsync(
            AlternativePage currentPage,
            AlternativePage newPage,
            ContentPresenter previousPagePresenter,
            ContentPresenter newPagePresenter)
        {
            var transition = currentPage != null ? (currentPage.PageTransition ?? this.PageTransition) : this.PageTransition;

            if (transition != null)
            {
                if (currentPage != null)
                {
                    await currentPage.OnTransitioningFromInternalAsync();
                }

                if (newPage != null)
                {
                    await newPage.OnTransitioningToInternalAsync();
                }

                await transition.TransitionBackwardAsync(previousPagePresenter, newPagePresenter);

                if (currentPage != null)
                {
                    await currentPage.OnTransitionedFromInternalAsync();
                }

                if (newPage != null)
                {
                    await newPage.OnTransitionedToInternalAsync();
                }
            }
        }