2 writes to _navStack
Microsoft.Maui.Controls (2)
Shell\ShellSection.cs (2)
135 _navStack = new List<Page> { null }; 824 _navStack = new List<Page> { null };
57 references to _navStack
Microsoft.Maui.Controls (57)
Shell\ShellSection.cs (57)
64 if (_navStack.Count > 1) 65 return _navStack[_navStack.Count - 1]; 114 if (_navStack.Count <= 1) 117 var page = _navStack[_navStack.Count - 1]; 119 _navStack.Remove(page); 131 if (_navStack.Count <= 1) 134 var oldStack = _navStack; 154 if (_navStack.Count <= 1) 157 var last = _navStack[_navStack.Count - 1]; 158 _navStack.Remove(last); 170 if (_navStack.Count <= 1) 173 _navStack.Remove(page); 181 if (_navStack.Contains(page)) 182 _navStack.Remove(page); 255 public IReadOnlyList<Page> Stack => _navStack; 330 var navStackCopy = new List<Page>(_navStack); 357 if (navIndex < _navStack.Count && Routing.GetRoute(_navStack[navIndex]) == globalRoutes[i]) 368 else if (!isLast && navIndex < _navStack.Count) 370 Navigation.InsertPageBefore(page, _navStack[navIndex]); 387 navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 432 navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 435 while (_navStack.Count > popCount) 439 if ((_navStack.Count - popCount) == 1) 441 bool isAnimated = animate ?? IsNavigationAnimated(_navStack[_navStack.Count - 1]); 446 OnRemovePage(_navStack[_navStack.Count - 2]); 450 navStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 467 for (int j = 1; j < _navStack.Count; j++) 469 if (Routing.GetRoute(_navStack[j]) == globalRoutes[i]) 479 OnRemovePage(_navStack[j]); 502 if (_navStack.Count == 2) 514 var currentNavStack = ShellNavigationManager.BuildFlattenedNavigationStack(_navStack, Navigation?.ModalStack); 519 bool weveGoneTotalModal = currentNavStack.Count > _navStack.Count; 634 protected virtual IReadOnlyList<Page> GetNavigationStack() => _navStack; 728 var index = _navStack.IndexOf(before); 732 var stack = _navStack.ToList(); 747 _navStack.Insert(index, page); 760 if (_navStack.Count <= 1) 763 List<Page> stack = _navStack.ToList(); 777 var page = _navStack[_navStack.Count - 1]; 784 _navStack.Remove(page); 801 if (_navStack.Count <= 1) 816 var page = _navStack[_navStack.Count - 1]; 823 var oldStack = _navStack; 843 List<Page> stack = _navStack.ToList(); 863 _navStack.Add(page); 908 if (!_navStack.Contains(page)) 912 var stack = _navStack.ToList(); 930 _navStack.Remove(page); 957 if (_navStack.Count == 1)