Xamarin.Forms by Xamarin Inc.

<PackageReference Include="Xamarin.Forms" Version="1.4.4.6387" />

.NET API 713,216 bytes

 NavigationPage

A Page that manages the navigation and user-experience of a stack of other pages.

Identifies the property associated with the title of the back button.

Identifies the property associated with the color of the NavigationPage's bar background color.

public static readonly BindableProperty BarTextColorProperty

Identifies the property associated with the color of the NavigationPage's bar text color.

public static readonly BindableProperty CurrentPageProperty

Identifies the CurrentPage property.

public static readonly BindableProperty HasBackButtonProperty

Backing store for the HasBackButton property.

Backing store for the HasNavigationBar property.

public static readonly BindableProperty TintProperty

Identifies the Tint bindable property.

public static readonly BindableProperty TitleIconProperty

Indicates the SetTitleIcon/ GetTitleIcon property.

public Color BarBackgroundColor { get; set; }

Gets or sets the background color for the bar at the top of the NavigationPage.

public Color BarTextColor { get; set; }

Gets or sets the text that appears on the bar at the top of the NavigationPage.

public Page CurrentPage { get; }

The Page that is currently top-most on the navigation stack.

public Color Tint { get; set; }

The color to be used as the Tint of the NavigationPage.

Event that is raised after a page is popped from this NavigationPage element.

Event that is raised when the last nonroot element is popped from this NavigationPage element.

Event that is raised when a page is pushed onto this NavigationPage element.

public NavigationPage()

public NavigationPage(Page root)

public static string GetBackButtonTitle(BindableObject page)

The title of the back button for the specified page.

public static bool GetHasBackButton(Page page)

Returns a value that indicates whether page has a back button.

public static bool GetHasNavigationBar(BindableObject page)

Returns a value that indicates whether the page has a navigation bar.

Retrieves the path to the file providing the title icon for the bindable.

public static void SetBackButtonTitle(BindableObject page, string value)

Sets the title that appears on the back button for page.

public static void SetHasBackButton(Page page, bool value)

Adds or removes a back button to page, with optional animation.

public static void SetHasNavigationBar(BindableObject page, bool value)

Sets a value that indicates whether or not this NavigationPage element has a navigation bar.

public static void SetTitleIcon(BindableObject bindable, FileImageSource value)

Sets the title icon of the bindable to the icon file at value.

public Task<Page> PopAsync()

Asynchronously removes the top Page from the navigation stack.

public Task<Page> PopAsync(bool animated)

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

Pops all but the root Page off the navigation stack.

public Task PopToRootAsync(bool animated)

A task for asynchronously popping all pages off of the navigation stack.

public Task PushAsync(Page page)

Presents a Page modally.

public Task PushAsync(Page page, bool animated)

A task for asynchronously pushing a page onto the navigation stack, with optional animation.