6 writes to Navigation
Microsoft.Maui.Controls (6)
NavigableElement\NavigableElement.cs (1)
24 Navigation = new NavigationProxy();
NavigationPage\NavigationPage.cs (2)
82 Navigation = new MauiNavigationImpl(this); 84 Navigation = new NavigationImpl(this);
Shell\Shell.cs (1)
1165 Navigation = new NavigationImpl(this);
Shell\ShellSection.cs (1)
240 Navigation = new NavigationImpl(this);
Window\Window.cs (1)
91 Navigation = new NavigationImpl(this);
92 references to Navigation
Microsoft.Maui.Controls (91)
NavigableElement\NavigableElement.cs (4)
14 BindableProperty.CreateReadOnly(nameof(Navigation), typeof(INavigation), typeof(NavigableElement), default(INavigation)); 16 /// <summary>Bindable property for <see cref="Navigation"/>.</summary> 35 /// <summary>Gets the cast of <see cref="Navigation"/> to a <see cref="Maui.Controls.Internals.NavigationProxy"/>.</summary> 43 get { return Navigation as NavigationProxy; }
NavigationPage\NavigationPage.cs (8)
218 if (Navigation is MauiNavigationImpl mvi && this is IStackNavigation) 264 if (Navigation is MauiNavigationImpl mvi && this is IStackNavigation) 298 if (Navigation is MauiNavigationImpl mvi && this is IStackNavigation) 508 IReadOnlyList<IView> NavigationStack => this.Navigation.NavigationStack; 528 var rootPage = this.FindParentWith(x => (x is IWindow te || Window.Navigation.ModalStack.Contains(x)), true); 691 if (Navigation is MauiNavigationImpl && InternalChildren.Count > 0) 693 var navStack = Navigation.NavigationStack; 694 var visiblePage = Navigation.NavigationStack[NavigationStack.Count - 1];
NavigationPage\NavigationPageToolbar.cs (3)
147 if (navPage.Navigation.NavigationStack.Count == 0) 150 if (navPage.Navigation.NavigationStack.Count > 1) 211 var stack = navigationPage.Navigation.NavigationStack;
Page\Page.cs (1)
475 Navigation
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
292 modal.NavigationProxy.Inner = _window.Navigation; 298 modal.NavigationProxy.Inner = _window.Navigation;
Routing.cs (4)
46 var navigationStackCount = section.Navigation.NavigationStack.Count; 49 RegisterImplicitPageRoute(section.Navigation.NavigationStack[i]); 51 var navigationModalStackCount = section.Navigation.ModalStack.Count; 54 var page = section.Navigation.ModalStack[i];
Shell\BaseShellItem.cs (6)
174 if (Navigation.ModalStack.Count > 0) 176 Navigation.ModalStack[Navigation.ModalStack.Count - 1] 181 else if (Navigation.NavigationStack.Count > 1) 183 Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]
Shell\Shell.cs (7)
792 => ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, includeStack ? shellSection.Stack.ToList() : null, includeStack ? shellSection.Navigation.ModalStack.ToList() : null); 848 var state = ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, shellSection.Navigation.NavigationStack, null); 882 var navParameters = ShellNavigationManager.GetNavigationParameters(shellItem, shellSection, shellContent, shellSection.Navigation.NavigationStack, null); 933 var modalStack = shellSection?.Navigation?.ModalStack; 1550 await currentContent.Navigation.PopAsync(); 1937 var navStack = CurrentSection?.Navigation?.NavigationStack; 2125 await _shell.CurrentSection.Navigation.PushModalAsync(modal, animated);
Shell\ShellNavigationManager.cs (10)
157 if (!modalStackPreBuilt && currentShellSection?.Navigation.ModalStack.Count > 0) 168 currentShellSection.Navigation.RemovePage(currentShellSection.Stack[i]); 185 nextActiveSection?.Navigation?.NavigationStack?.Count > 1) 353 var proposedState = GetNavigationState(shellItem, shellSection, shellContent, stack, shellSection.Navigation.ModalStack); 488 var navStack = shellSection.Navigation.NavigationStack; 560 for (int j = 1; j < topPage.Navigation.NavigationStack.Count; j++) 562 routeStack.AddRange(ShellUriHandler.CollapsePath(Routing.GetRoute(topPage.Navigation.NavigationStack[j]), routeStack, hasUserDefinedRoute)); 578 return BuildFlattenedNavigationStack(section.Stack, section.Navigation.ModalStack); 590 for (int j = 1; j < modalStack[i].Navigation.NavigationStack.Count; j++) 592 returnValue.Add(modalStack[i].Navigation.NavigationStack[j]);
Shell\ShellSection.cs (37)
56 if (Navigation.ModalStack.Count > 0) 58 if (Navigation.ModalStack[Navigation.ModalStack.Count - 1] is NavigationPage np) 59 return np.Navigation.NavigationStack[np.Navigation.NavigationStack.Count - 1]; 61 return Navigation.ModalStack[Navigation.ModalStack.Count - 1]; 328 if (Navigation.ModalStack.Count > 0) 349 if (Navigation.ModalStack.Count == 0) 370 Navigation.InsertPageBefore(page, _navStack[navIndex]); 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) 572 await activeModalNavigationPage.Navigation.PushAsync(modalPage, animate ?? IsNavigationAnimated(modalPage)); 583 if (Navigation is NavigationImpl shellSectionProxy) 586 return Navigation.PopModalAsync(isAnimated); 591 if (Navigation is NavigationImpl shellSectionProxy) 594 return Navigation.PushModalAsync(page, isAnimated); 609 Navigation.InsertPageBefore(pages[i], pages[i + 1]); 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;
ShellToolbar.cs (2)
72 var stack = _shell.Navigation.NavigationStack; 181 else if (_shell.Navigation?.NavigationStack?.Count <= 1)
ViewExtensions.cs (1)
510 var modalStack = window.Navigation.ModalStack;
VisualElement\VisualElement.cs (1)
23 /// <summary>Bindable property for <see cref="NavigableElement.Navigation"/>.</summary>
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();
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\NavigationRenderer.cs (1)
818 if (Element.Navigation.NavigationStack.Contains(pageBeingRemoved))