3 types derived from ShellItem
Microsoft.Maui.Controls (3)
Shell\MenuShellItem.cs (1)
10 internal class MenuShellItem : ShellItem, IMenuItemController, IStyleSelectable
Shell\ShellItem.cs (2)
16 public class FlyoutItem : ShellItem 41 public class TabBar : ShellItem
1 instantiation of ShellItem
Microsoft.Maui.Controls (1)
Shell\ShellItem.cs (1)
221 result = new ShellItem();
95 references to ShellItem
Microsoft.Maui.Controls (95)
Compatibility\Handlers\Shell\iOS\IShellItemController.cs (1)
10 ShellItem ShellItem { get; set; }
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (6)
21 public ShellItem ShellItem 55 ShellItem _shellItem; 76 ShellItem.SetValueFromRenderer(ShellItem.CurrentItemProperty, renderer.ShellSection); 97 ShellItem.SetValueFromRenderer(ShellItem.CurrentItemProperty, renderer.ShellSection); 183 if (e.PropertyName == ShellItem.CurrentItemProperty.PropertyName) 245 protected virtual void OnShellItemSet(ShellItem shellItem)
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (1)
138 (Page.FindParentOfType<ShellItem>() as IShellItemController)?.ShowTabs ?? Shell.GetTabBarIsVisible(Page);
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (2)
178 protected virtual IShellItemRenderer CreateShellItemRenderer(ShellItem item) 233 var currentItem = Shell.CurrentItem;
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
660 var shellItem = _context.Shell.CurrentItem;
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (1)
152 return shellController.ProposeNavigation(ShellNavigationSource.ShellContentChanged, (ShellItem)ShellSection.Parent, ShellSection, item, ShellSection.Stack, true);
PlatformConfiguration\AndroidSpecific\ShellItem.cs (1)
3 using FormsElement = Maui.Controls.ShellItem;
Routing.cs (1)
42 foreach (var item in shell.Items)
Shell\IShellController.cs (3)
41 ShellNavigationState GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack = true); 47 bool ProposeNavigation(ShellNavigationSource source, ShellItem item, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel); 55 ReadOnlyCollection<ShellItem> GetItems();
Shell\RequestDefinition.cs (1)
46 public ShellItem Item { get; }
Shell\RouteRequestBuilder.cs (4)
20 public ShellItem Item { get; private set; } 115 case ShellItem item: 129 Item = Section.Parent as ShellItem; 147 Item = Section.Parent as ShellItem;
Shell\Shell.cs (29)
628 defaultValueCreator: bo => new ShellItemCollection { Inner = new ElementCollection<ShellItem>(((Shell)bo).InternalChildren) }); 791 ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack) 805 ShellItem shellItem = null; 814 case ShellItem i: 818 shellItem = s.Parent as ShellItem; 822 shellItem = c.Parent.Parent as ShellItem; 897 if (sender is ShellItem item) 904 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 929 var shellItem = CurrentItem; 943 ReadOnlyCollection<ShellItem> IShellController.GetItems() => ((ShellItemCollection)Items).VisibleItemsReadOnly; 1060 BindableProperty.Create(nameof(CurrentItem), typeof(ShellItem), typeof(Shell), null, BindingMode.TwoWay, 1221 ShellItem shellItem = null; 1234 var item = navRequest.Request.Item; 1264 foreach (var item in shellItems) 1266 if (item is ShellItem && ValidDefaultShellItem(item)) 1304 public ShellItem CurrentItem 1306 get => (ShellItem)GetValue(CurrentItemProperty); 1447 public IList<ShellItem> Items => (IList<ShellItem>)GetValue(ItemsProperty); 1639 if (oldValue is ShellItem oldShellItem) 1655 if (newValue is ShellItem newShellItem) 1671 var shellItem = (ShellItem)newValue; 1693 ShellItem currentItem = shell.CurrentItem; 1698 ShellItem item = items[i]; 1702 else if (root is ShellItem shellItem) 1755 ShellItem rootItem = null; 1780 (o) => rootItem = rootItem ?? o as ShellItem); 1956 case ShellItem shellItem:
Shell\ShellContent.cs (2)
235 shellSection.Parent is ShellItem shellItem && 321 if (shellContent.Parent?.Parent is ShellItem shellItem)
Shell\ShellFlyoutItemsManager.cs (1)
105 foreach (var shellItem in ShellController.GetItems())
Shell\ShellItem.cs (22)
54 public class ShellItem : ShellGroupItem, IShellItemController, IElementConfiguration<ShellItem>, IPropertyPropagationController, IVisualTreeElement 58 static readonly BindablePropertyKey ItemsPropertyKey = BindableProperty.CreateReadOnly(nameof(Items), typeof(ShellSectionCollection), typeof(ShellItem), null, 59 defaultValueCreator: bo => new ShellSectionCollection { Inner = new ElementCollection<ShellSection>(((ShellItem)bo).DeclaredChildren) }); 142 BindableProperty.Create(nameof(CurrentItem), typeof(ShellSection), typeof(ShellItem), null, BindingMode.TwoWay, 149 Lazy<PlatformConfigurationRegistry<ShellItem>> _platformConfigurationRegistry; 177 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<ShellItem>>(() => new PlatformConfigurationRegistry<ShellItem>(this)); 204 internal static ShellItem CreateFromShellSection(ShellSection shellSection) 208 var current = (ShellItem)shellSection.Parent; 216 ShellItem result = null; 234 public static implicit operator ShellItem(ShellSection shellSection) 239 public static implicit operator ShellItem(ShellContent shellContent) => (ShellSection)shellContent; 241 public static implicit operator ShellItem(TemplatedPage page) => (ShellSection)(ShellContent)page; 243 public static implicit operator ShellItem(MenuItem menuItem) => new MenuShellItem(menuItem); 246 public IPlatformElementConfiguration<T, ShellItem> On<T>() where T : IConfigPlatform 285 var shellItem = (ShellItem)bindable; 361 ShellSection shellSection => (ShellItem)shellSection, 362 ShellContent shellContent => (ShellItem)shellContent, 363 TemplatedPage page => (ShellItem)page, 364 MenuItem menuItem => (ShellItem)menuItem,
Shell\ShellItemCollection.cs (3)
7 internal sealed class ShellItemCollection : ShellElementCollection<ShellItem> 11 public override void Add(ShellItem item) 27 (this[i] as ShellItem).Items.Add(item.Items[0]);
Shell\ShellNavigationManager.cs (5)
98 var shellItem = navigationRequest.Request.Item; 141 shellItem.SetValueFromRenderer(ShellItem.CurrentItemProperty, shellSection); 343 ShellItem shellItem, 481 ShellItem shellItem, 517 public static ShellNavigationState GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> sectionStack, IReadOnlyList<Page> modalStack)
Shell\ShellSection.cs (6)
274 ShellItem ShellItem => Parent as ShellItem; 737 Parent as ShellItem, 767 Parent as ShellItem, 806 Parent as ShellItem, 1215 var shellItem = _owner.Shell.CurrentItem;
Shell\ShellUriHandler.cs (5)
717 public ShellItem Item { get; private set; } 746 case ShellItem item: 757 Item = Section.Parent as ShellItem; 771 Item = Section.Parent as ShellItem; 930 case ShellItem item: