1 write to CurrentItem
Microsoft.Maui.Controls (1)
Shell\ShellItem.cs (1)
213 current.CurrentItem = shellSection;
51 references to CurrentItem
Microsoft.Maui.Controls (51)
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\RequestDefinition.cs (1)
14 Section = theWinningRoute.Section ?? Item?.CurrentItem;
Shell\Shell.cs (13)
836 shellSection = shellSection ?? shellItem.CurrentItem; 932 var shellSection = shellItem?.CurrentItem; 1312 internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.CurrentItem; 1313 internal ShellSection CurrentSection => CurrentItem?.CurrentItem; 1537 var currentContent = CurrentItem?.CurrentItem; 1666 if (shell.CurrentItem?.CurrentItem != null) 1667 shell.ShellController.AppearanceChanged(shell.CurrentItem.CurrentItem, false); 1678 var shellSection = shellItem.CurrentItem; 1706 var currentItem = shellItem.CurrentItem; 1921 if (CurrentItem?.CurrentItem is IShellSectionController scc) 1959 element = shellItem.CurrentItem; 2082 NavigationProxy SectionProxy => _shell.CurrentItem?.CurrentItem?.NavigationProxy; 2109 if (ModalStack.Count == 0 && !_shell.CurrentItem.CurrentItem.IsPoppingModalStack)
Shell\ShellFlyoutItemsManager.cs (1)
154 if (shellContents.Count == 1 && shellSection == shellItem.CurrentItem && shellSection.CurrentItem.MenuItems.Count > 0)
Shell\ShellItem.cs (10)
142 /// <summary>Bindable property for <see cref="CurrentItem"/>.</summary> 144 BindableProperty.Create(nameof(CurrentItem), typeof(ShellSection), typeof(ShellItem), null, BindingMode.TwoWay, 267 if (CurrentItem == null && ((IShellItemController)this).GetItems().Contains(child)) 273 if (CurrentItem == child) 330 if (CurrentItem != null && Parent is Shell shell && shell.CurrentItem == this) 332 CurrentItem.SendAppearing(); 339 CurrentItem?.SendDisappearing(); 345 if (this.IsVisibleItem && CurrentItem != null) 346 ((IShellController)Parent)?.AppearanceChanged(CurrentItem, false); 380 public ShellSection CurrentItem => shellItem.CurrentItem;
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; 101 var nextActiveSection = shellSection ?? shellItem?.CurrentItem; 139 if (shellItem.CurrentItem != shellSection) 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; 258 BaseShellItem baseShellItem = _shell.CurrentItem?.CurrentItem?.CurrentItem; 577 var section = shell.CurrentItem.CurrentItem;
Shell\ShellSection.cs (2)
956 internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.CurrentItem?.CurrentItem == this; 1229 var shellSection = shellItem?.CurrentItem;
Shell\ShellUriHandler.cs (6)
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); 728 (object)shell.CurrentItem?.CurrentItem?.CurrentItem ?? 729 (object)shell.CurrentItem?.CurrentItem ??