Language

IModalNavigationHost.PlatformModalStack Property

Definition

Gets the modal pages that the platform has actually presented, in push order. The last entry is the modal currently on screen.

public:
 property System::Collections::Generic::IReadOnlyList<Microsoft::Maui::Controls::Page ^> ^ PlatformModalStack { System::Collections::Generic::IReadOnlyList<Microsoft::Maui::Controls::Page ^> ^ get(); };
public System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Controls.Page> PlatformModalStack { get; }
member this.PlatformModalStack : System.Collections.Generic.IReadOnlyList<Microsoft.Maui.Controls.Page>
Public ReadOnly Property PlatformModalStack As IReadOnlyList(Of Page)

Property Value

Remarks

This is maintained by the framework. It is updated before PushModalAsync(Page, Boolean) is awaited and before PopModalAsync(Page, Boolean) is awaited, so during those calls it already reflects the requested end state.

Applies to