Catel.ApplicationExtensions.CurrentPage C# (CSharp) Метод

CurrentPage() публичный статический Метод

Gets the current page.
The is null.
public static CurrentPage ( this @this ) : Page
@this this
Результат Page
        public static Page CurrentPage(this Application @this)
        {
            Argument.IsNotNull(() => @this);

            var modalStack = Application.Current.MainPage.Navigation.ModalStack;
            var currentPage = modalStack[modalStack.Count - 1];
            if (currentPage is NavigationPage)
            {
                currentPage = (currentPage as NavigationPage).CurrentPage ?? currentPage;
            }

            return currentPage;
        }
    }
ApplicationExtensions