- page
- The Xamarin.Forms.Page to present modally.
An awaitable Task, indicating the PushModal completion.
The following example shows PushModalAsync and PopModalAsync usage:
C# Example
var modalPage = new ContentPage ();
await Navigation.PushModalAsync (modalPage);
Debug.WriteLine ("The modal page is now on screen");
var poppedPage = await Navigation.PopModalAsync ();
Debug.WriteLine ("The modal page is dismissed");
Debug.WriteLine (Object.ReferenceEquals (modalPage, poppedPage)); //prints "true"