1 write to CurrentItem
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
285 current.CurrentItem = shellContent;
36 references to CurrentItem
Microsoft.Maui.Controls (36)
Shell\RequestDefinition.cs (1)
15 Content = theWinningRoute.Content ?? Section?.CurrentItem;
Shell\Shell.cs (7)
837 shellContent = shellContent ?? shellSection?.CurrentItem; 933 var shellContent = shellSection?.CurrentItem; 1312 internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.CurrentItem; 1679 var shellContent = shellSection.CurrentItem; 1717 var currentItem = shellSection.CurrentItem; 1845 if (!foundShellContent && pivot is ShellSection shellSection && shellSection.CurrentItem != null) 1847 if (result.Ingest(shellSection.CurrentItem))
Shell\ShellContent.cs (1)
125 internal bool IsVisibleContent => Parent is ShellSection shellSection && shellSection.IsVisibleSection && shellSection.CurrentItem == this;
Shell\ShellFlyoutItemsManager.cs (3)
129 if (shellContent == shellSection.CurrentItem) 154 if (shellContents.Count == 1 && shellSection == shellItem.CurrentItem && shellSection.CurrentItem.MenuItems.Count > 0) 156 AddMenuItems(shellSection.CurrentItem.MenuItems);
Shell\ShellItem.cs (1)
79 shellSection?.CurrentItem,
Shell\ShellNavigationManager.cs (3)
129 if (shellSection.CurrentItem != shellContent) 222 var shellContent = _shell?.CurrentItem?.CurrentItem?.CurrentItem; 258 BaseShellItem baseShellItem = _shell.CurrentItem?.CurrentItem?.CurrentItem;
Shell\ShellSection.cs (17)
69 return ((IShellContentController)CurrentItem)?.Page; 205 /// <summary>Bindable property for <see cref="CurrentItem"/>.</summary> 207 BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay, 659 IShellContentController currentItem = CurrentItem; 709 if (CurrentItem == null && ((IShellSectionController)this).GetItems().Contains(child)) 712 if (CurrentItem != null) 718 if (CurrentItem == child) 752 CurrentItem, 782 CurrentItem, 821 CurrentItem, 862 CurrentItem, 932 CurrentItem, 961 CurrentItem?.SendDisappearing(); 971 CurrentItem?.SendAppearing(); 1097 _owner.CurrentItem, 1230 var shellContent = shellSection?.CurrentItem; 1282 public ShellSection CurrentItem => section.CurrentItem;
Shell\ShellUriHandler.cs (3)
62 shell.CurrentItem.CurrentItem.CurrentItem.Route, 66 restOfPath.Insert(0, shell.CurrentItem.CurrentItem.CurrentItem.Route); 728 (object)shell.CurrentItem?.CurrentItem?.CurrentItem ??