17 references to _modalPages
Microsoft.Maui.Controls (17)
Platform\ModalNavigationManager\ModalNavigationManager.cs (17)
13 public IReadOnlyList<Page> ModalStack => _modalPages.Pages; 31 var currentPage = _modalPages.Count > 0 ? _modalPages[_modalPages.Count - 1].Page : _window.Page; 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) 153 if (_modalPages.TryGetValue(CurrentPlatformModalPage, out var request)) 155 _modalPages.Remove(CurrentPlatformModalPage); 168 if (i < _modalPages.Count && IsModalReady) 170 var nextRequest = _modalPages[i]; 200 if (_modalPages.Count <= 0) 205 Page modal = _modalPages[_modalPages.Count - 1].Page; 213 _modalPages.Remove(modal); 263 _modalPages.Add(new NavigationStepRequest(modal, true, animated)); 363 _modalPages.Clear();