Xamarin.Forms Guides | Samples

Xamarin.Forms.Application Class

Class that represents a cross-platform mobile application.

See Also: Application

Syntax

Requirements

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

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

See Also: Element

Protected Constructors

Initializes a new Application instance.

Public Properties

[read-only]
AppLinksIAppLinks.
[read-only]
static
CurrentApplication. Gets the current application.
MainPagePage. Gets or sets the main page of the application.
[read-only]
PropertiesIDictionary<string, object>. Gets the dictionary of properties for this Application object.
ResourcesResourceDictionary. Gets or sets the resource dictionary for this Application object.

Public Methods

On<T>() : IPlatformElementConfiguration<T, Application>
SavePropertiesAsync() : Task
Asynchronously persists the Application.Properties dictionary for the application object.

Protected Methods

OnAppLinkRequestReceived(Uri)
override
OnParentSet()
Throws InvalidOperationException.
OnResume()
Application developers override this method to perform actions when the application resumes from a sleeping state.
OnSleep()
Application developers override this method to perform actions when the application enters the sleeping state.
OnStart()
Application developers override this method to perform actions when the application starts.

Public Events

ModalPoppedEvent that is raised after a view has been popped modally.
ModalPoppingEvent that is raised when a view is modally popped.
ModalPushedEvent that is raised after a view has been pushed modally.
ModalPushingEvent that is raised when a view is modally pushed.

Explicitly Implemented Interface Members