Language

IModalNavigationHost.CurrentPlatformPage Property

Definition

Gets the page that is currently hosting content on the platform: the topmost entry of PlatformModalStack, or the window's page when no modal has been presented.

public:
 property Microsoft::Maui::Controls::Page ^ CurrentPlatformPage { Microsoft::Maui::Controls::Page ^ get(); };
public Microsoft.Maui.Controls.Page CurrentPlatformPage { get; }
member this.CurrentPlatformPage : Microsoft.Maui.Controls.Page
Public ReadOnly Property CurrentPlatformPage As Page

Property Value

Exceptions

Thrown when there is no presented modal and the window has no page.

Applies to