INavigation INavigation Interface

Definition

Interface abstracting platform-specific navigation.

public interface INavigation
type INavigation = interface
Derived

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.

Properties

ModalStack ModalStack

Gets the modal navigation stack.

NavigationStack NavigationStack

Gets the stack of pages in the navigation.

Methods

InsertPageBefore(Page, Page) InsertPageBefore(Page, Page)

Inserts a page in the navigation stack before an existing page in the stack.

PopAsync() PopAsync()

Asynchronously removes the most recent Page from the navigation stack.

PopAsync(Boolean) PopAsync(Boolean)

Asynchronously removes the most recent Page from the navigation stack, with optional animation.

PopModalAsync() PopModalAsync()

Asynchronously dismisses the most recent modally presented Page.

PopModalAsync(Boolean) PopModalAsync(Boolean)

Asynchronously dismisses the most recent modally presented Page, with optional animation.

PopToRootAsync() PopToRootAsync()

Pops all but the root Page off the navigation stack.

PopToRootAsync(Boolean) PopToRootAsync(Boolean)

Pops all but the root Page off the navigation stack, with optional animation.

PushAsync(Page) PushAsync(Page)

Asynchronously adds a Page to the top of the navigation stack.

PushAsync(Page, Boolean) PushAsync(Page, Boolean)

Asynchronously adds a Page to the top of the navigation stack, with optional animation.

PushModalAsync(Page) PushModalAsync(Page)

Presents a Page modally.

PushModalAsync(Page, Boolean) PushModalAsync(Page, Boolean)

Presents a Page modally, with optional animation.

RemovePage(Page) RemovePage(Page)

Removes the specified page from the navigation stack.

Applies to