2 implementations of ModalStack
Microsoft.Maui.Controls (1)
NavigationProxy.cs (1)
77
public IReadOnlyList<Page>
ModalStack
Microsoft.Maui.Controls.Compatibility (1)
Tizen\Platform.cs (1)
175
IReadOnlyList<Page> INavigation.
ModalStack
=> _navModel.Modals.ToList();
46 references to ModalStack
Microsoft.Maui.Controls (46)
NavigationPage\NavigationPage.cs (1)
528
var rootPage = this.FindParentWith(x => (x is IWindow te || Window.Navigation.
ModalStack
.Contains(x)), true);
NavigationProxy.cs (1)
161
return currentInner is null ? _modalStack.Value.Pages : currentInner.
ModalStack
;
Platform\iOS\ControlsModalWrapper.cs (1)
72
var modalStack = new List<Page>(shell.CurrentItem.CurrentItem.Navigation.
ModalStack
);
Routing.cs (2)
51
var navigationModalStackCount = section.Navigation.
ModalStack
.Count;
54
var page = section.Navigation.
ModalStack
[i];
Shell\BaseShellItem.cs (3)
174
if (Navigation.
ModalStack
.Count > 0)
176
Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1]
Shell\Shell.cs (2)
792
=> ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, includeStack ? shellSection.Stack.ToList() : null, includeStack ? shellSection.Navigation.
ModalStack
.ToList() : null);
933
var modalStack = shellSection?.Navigation?.
ModalStack
;
Shell\ShellNavigationManager.cs (3)
157
if (!modalStackPreBuilt && currentShellSection?.Navigation.
ModalStack
.Count > 0)
353
var proposedState = GetNavigationState(shellItem, shellSection, shellContent, stack, shellSection.Navigation.
ModalStack
);
578
return BuildFlattenedNavigationStack(section.Stack, section.Navigation.
ModalStack
);
Shell\ShellSection.cs (27)
56
if (Navigation.
ModalStack
.Count > 0)
58
if (Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1] is NavigationPage np)
61
return Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1];
328
if (Navigation.
ModalStack
.Count > 0)
349
if (Navigation.
ModalStack
.Count == 0)
387
navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.
ModalStack
);
420
while (navStack.Count > popCount && Navigation.
ModalStack
.Count > 0)
423
if (Navigation.
ModalStack
.Contains(navStack[navStack.Count - 1]))
427
else if (Navigation.
ModalStack
.Count > 0)
429
await Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1].Navigation.PopAsync(isAnimated);
432
navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.
ModalStack
);
450
navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.
ModalStack
);
514
var currentNavStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.
ModalStack
);
548
for (int i = Navigation.
ModalStack
.Count - 1; i >= 0; i--)
550
if (Navigation.
ModalStack
[i] is NavigationPage np)
653
if (!Navigation.
ModalStack
.Any())
878
int modalStackCount = Navigation.
ModalStack
.Count;
881
var pageToPop = Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1];
887
if (page == null && Navigation.
ModalStack
.Count == 1)
891
else if (Navigation.
ModalStack
.Count > 1 && Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 2] == page)
1218
var modalStack = shellSection?.Navigation?.
ModalStack
;
ViewExtensions.cs (1)
510
var modalStack = window.Navigation.
ModalStack
;
Window\Window.cs (5)
426
if (Navigation.
ModalStack
.Count == 0)
432
if (Navigation.
ModalStack
.Count == 0)
677
if (Navigation.
ModalStack
.Count > 0)
679
return Navigation.
ModalStack
[Navigation.
ModalStack
.Count - 1].SendBackButtonPressed();