Xamarin.Forms Guides | Samples

Xamarin.Forms.INavigation

Interface abstracting platform-specific navigation.

See Also: INavigation

Syntax

public interface INavigation

Remarks

Note that on the Android platform, INavigation operations do not generate activity lifecycle notifications. For each Page that you push or pop, the Android implementation of NavigationPage simply adds or removes the content of the page to or from a single activity.

Also note that the Windows Phone platform provides navigation natively. Therefore, you do not need to use a NavigationPage object to get navigation on that platform.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.INavigation are listed below.

Public Properties

[read-only]
ModalStackIReadOnlyList<Page>. Gets the modal navigation stack.
[read-only]
NavigationStackIReadOnlyList<Page>. Gets the stack of pages in the navigation.

Public Methods

InsertPageBefore(Page, Page)
Inserts a page in the navigation stack before an existing page in the stack.
PopAsync() : System.Threading.Tasks.Task<Page>
Asynchronously removes the most recent Page from the navigation stack.
PopAsync(Boolean) : System.Threading.Tasks.Task<Page>
Asynchronously removes the most recent Page from the navigation stack, with optional animation.
PopModalAsync() : System.Threading.Tasks.Task<Page>
Asynchronously dismisses the most recent modally presented Page.
PopModalAsync(Boolean) : System.Threading.Tasks.Task<Page>
Asynchronously dismisses the most recent modally presented Page, with optional animation.
PopToRootAsync() : Task
Pops all but the root Page off the navigation stack.
PopToRootAsync(Boolean) : Task
Pops all but the root Page off the navigation stack, with optional animation.
PushAsync(Page) : Task
Asynchronously adds a Page to the top of the navigation stack.
PushAsync(Page, Boolean) : Task
Asynchronously adds a Page to the top of the navigation stack, with optional animation.
PushModalAsync(Page) : Task
Presents a Page modally.
PushModalAsync(Page, Boolean) : Task
Presents a Page modally, with optional animation.
RemovePage(Page)
Removes the specified page from the navigation stack.