56 references to CurrentItem
Microsoft.Maui.Controls (56)
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
226 if (!shell.CurrentItem.CurrentItem.IsPoppingModalStack) 275 if (!shell.CurrentItem.CurrentItem.IsPushingModalStack)
Platform\PageExtensions.cs (1)
15 else if (currentPage is Shell shell && shell.CurrentItem?.CurrentItem is IShellSectionController ssc)
Shell\Shell.cs (22)
848 if (this.CurrentItem == null) 931 var shellItem = CurrentItem; 1062 BindableProperty.Create(nameof(CurrentItem), typeof(ShellItem), typeof(Shell), null, BindingMode.TwoWay, 1204 if (CurrentItem != null) 1220 if (CurrentItem != null && shellItems.Contains(CurrentItem)) 1227 if (CurrentItem != null) 1312 internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.CurrentItem; 1313 internal ShellSection CurrentSection => CurrentItem?.CurrentItem; 1537 var currentContent = CurrentItem?.CurrentItem; 1605 CurrentItem?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName); 1615 CurrentItem?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName); 1666 if (shell.CurrentItem?.CurrentItem != null) 1667 shell.ShellController.AppearanceChanged(shell.CurrentItem.CurrentItem, false); 1695 ShellItem currentItem = shell.CurrentItem; 1867 if (CurrentItem == null || GetVisiblePage() == null) 1921 if (CurrentItem?.CurrentItem is IShellSectionController scc) 1956 element = shell.CurrentItem; 2082 NavigationProxy SectionProxy => _shell.CurrentItem?.CurrentItem?.NavigationProxy; 2109 if (ModalStack.Count == 0 && !_shell.CurrentItem.CurrentItem.IsPoppingModalStack) 2110 _shell.CurrentItem.SendAppearing(); 2132 _shell.CurrentItem.SendDisappearing();
Shell\ShellContent.cs (1)
242 shell.CurrentItem != shellItem || // user has navigated to a different TabBar or a different FlyoutItem
Shell\ShellItem.cs (2)
193 internal bool IsVisibleItem => Parent is Shell shell && shell?.CurrentItem == this; 330 if (CurrentItem != null && Parent is Shell shell && shell.CurrentItem == this)
Shell\ShellNavigationManager.cs (15)
52 if (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask != null) 53 await (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask); 100 var currentShellSection = _shell.CurrentItem?.CurrentItem; 146 if (_shell.CurrentItem != shellItem) 154 if (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask != null) 155 await (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask); 180 return _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping); 190 return _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping); 196 await _shell.CurrentItem.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping); 201 if (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask != null) 202 await (_shell?.CurrentItem?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask); 222 var shellContent = _shell?.CurrentItem?.CurrentItem?.CurrentItem; 242 _shell.CurrentItem?.SendAppearing(); 258 BaseShellItem baseShellItem = _shell.CurrentItem?.CurrentItem?.CurrentItem; 577 var section = shell.CurrentItem.CurrentItem;
Shell\ShellSection.cs (3)
956 internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.CurrentItem?.CurrentItem == this; 1095 shell.CurrentItem, 1228 var shellItem = _owner.Shell.CurrentItem;
Shell\ShellUriHandler.cs (10)
60 shell.CurrentItem.Route, 61 shell.CurrentItem.CurrentItem.Route, 62 shell.CurrentItem.CurrentItem.CurrentItem.Route, 66 restOfPath.Insert(0, shell.CurrentItem.CurrentItem.CurrentItem.Route); 67 restOfPath.Insert(0, shell.CurrentItem.CurrentItem.Route); 68 restOfPath.Insert(0, shell.CurrentItem.Route); 260 if (relativeMatch && shell?.CurrentItem != null) 728 (object)shell.CurrentItem?.CurrentItem?.CurrentItem ?? 729 (object)shell.CurrentItem?.CurrentItem ?? 730 (object)shell.CurrentItem ??