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.
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.
For internal use by the Xamarin.Forms platform.
SendBackButtonPressed() : Boolean
Calls Page.OnBackButtonPressed.
For internal use by the Xamarin.Forms platform.

Protected Methods

LayoutChildren(Double, Double, Double, Double)
Lays out children Elements into the specified area.
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.
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.
When overridden, allows the application developer to customize behavior as the Page disappears.
Called when the Page's Element.Parent property has changed.
OnSizeAllocated(Double, Double)
Indicates that the Page has been assigned a size.
Requests that the children Elements of the Page update their layouts.