Xamarin.Forms Guides | Samples

Xamarin.Forms.Page: Method Members

The methods of Xamarin.Forms.Page are listed below. For a list of all members, see the Page list.

See Also: VisualElement

Public Methods

DisplayActionSheet(String, String, String, params String[]) : System.Threading.Tasks.Task<string>
Displays a native platform action sheet, allowing the application user to choose from several buttons.
DisplayAlert(String, String, String) : Task
Presents an alert dialog to the application user with a single cancel button.
DisplayAlert(String, String, String, String) : System.Threading.Tasks.Task<bool>
Presents an alert dialog to the application user with an accept and a cancel button.
ForceLayout()
Forces the Page to perform a layout pass.
On<T>() : IPlatformElementConfiguration<T, Page>
TReturns the platform-specific instance of this Page, on which a platform-specific method may be called.
SendBackButtonPressed() : Boolean
Calls Page.OnBackButtonPressed.

Protected Methods

LayoutChildren(Double, Double, Double, Double)
Lays out children Elements into the specified area.
OnAppearing()
When overridden, allows application developers to customize behavior immediately prior to the Page becoming visible.
OnBackButtonPressed() : Boolean
Application developers can override this method to provide behavior when the back button is pressed.
override
OnBindingContextChanged()
Invoked whenever the binding context of the Page changes. Override this method to add class handling for this event.
OnChildMeasureInvalidated(Object, EventArgs)
Indicates that the preferred size of a child Element has changed.
OnDisappearing()
When overridden, allows the application developer to customize behavior as the Page disappears.
override
OnParentSet()
Called when the Page's Element.Parent property has changed.
override
OnSizeAllocated(Double, Double)
Indicates that the Page has been assigned a size.
UpdateChildrenLayout()
Requests that the children Elements of the Page update their layouts.