Application.MainPage Property

Definition

Gets or sets the root page of the application.

public:
 property Microsoft::Maui::Controls::Page ^ MainPage { Microsoft::Maui::Controls::Page ^ get(); void set(Microsoft::Maui::Controls::Page ^ value); };
public Microsoft.Maui.Controls.Page? MainPage { get; set; }
member this.MainPage : Microsoft.Maui.Controls.Page with get, set
Public Property MainPage As Page

Property Value

The root page of the application.

Remarks

This property throws an exception if the application developer attempts to set it to null.

Applies to