Mobile/CafeLib.Mobile/Services/MobileService.cs
/// <summary>
/// Asynchronously remove most recent page from the modal stack.
/// </summary>
/// <param name="animate">optional animation</param>
/// <returns>The page previously at top of the navigation stack</returns>
Asynchronously remove most recent page from the modal stack.
Asynchronously remove most recent page from the modal stack .
public async Task PopModalAsync(bool animate = false)
        {
            var navPage = GetCurrentNavigation();
            var page = navPage.NavigationStack.LastOrDefault();
            await navPage.PopModalAsync(animate);
            if (page != null)
            {
                ReleasePage(page.BindingContext?.GetType());
                page.Parent = null;
                page.BindingContext = null;
            }
        }
public async Task PopModalAsync ( bool animate = false ) { var navPage = GetCurrentNavigation ( ) ; var page = navPage . NavigationStack . LastOrDefault ( ) ; await navPage . PopModalAsync ( animate ) ; if ( page != null ) { ReleasePage ( page . BindingContext ? . GetType ( ) ) ; page . Parent = null ; page . BindingContext = null ; } }
Asynchronously remove most recent page from the modal stack.
Asynchronously remove most recent page from the modal stack .
The page previously at top of the navigation stack
The page previously at top of the navigation stack
animate
bool
None