21 references to _platformModalPages
Microsoft.Maui.Controls (21)
Platform\ModalNavigationManager\ModalNavigationManager.cs (13)
22
_platformModalPages
.Count > 0 ?
_platformModalPages
[
_platformModalPages
.Count - 1] : (_window.Page ?? throw new InvalidOperationException("Current Window isn't loaded"));
25
_platformModalPages
.Count > 0 ?
_platformModalPages
[
_platformModalPages
.Count - 1] : throw new InvalidOperationException("Modal Stack is Empty");
132
for (popTo = 0; popTo <
_platformModalPages
.Count && popTo < _modalPages.Count; popTo++)
134
if (
_platformModalPages
[popTo] != _modalPages[popTo].Page)
141
if (
_platformModalPages
.Count == _modalPages.Count && popTo ==
_platformModalPages
.Count)
150
if (
_platformModalPages
.Count > popTo && IsModalReady)
167
var i =
_platformModalPages
.Count;
366
_platformModalPages
.Clear();
Platform\ModalNavigationManager\ModalNavigationManager.iOS.cs (8)
87
_platformModalPages
.Remove(modal);
108
_platformModalPages
.Add(modal);
127
if (
_platformModalPages
.Count > 1)
129
var topPage =
_platformModalPages
[
_platformModalPages
.Count - 2];
173
if (
_platformModalPages
.Count > 0)
175
var uiViewController = (
_platformModalPages
[
_platformModalPages
.Count - 1].Handler as IPlatformViewHandler)?.ViewController;