1 type derived from ShellSection
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
18 public class Tab : ShellSection
1 instantiation of ShellSection
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
290 var shellSection = new ShellSection();
80 references to ShellSection
Microsoft.Maui.Controls (80)
Shell\IShellController.cs (2)
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);
Shell\IShellItemController.cs (2)
9 bool ProposeSection(ShellSection shellSection, bool setValue = true); 11 ReadOnlyCollection<ShellSection> GetItems();
Shell\RequestDefinition.cs (1)
47 public ShellSection Section { get; }
Shell\RouteRequestBuilder.cs (3)
21 public ShellSection Section { get; private set; } 121 case ShellSection section: 141 Section = Content.Parent as ShellSection;
Shell\Shell.cs (13)
709 if (pivot is ShellContent || pivot is ShellSection || pivot is ContentPage) 793 ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack) 808 ShellSection shellSection = null; 819 case ShellSection s: 825 shellSection = c.Parent as ShellSection; 901 else if (sender is ShellSection section) 906 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 1237 var section = navRequest.Request.Section; 1313 internal ShellSection CurrentSection => CurrentItem?.CurrentItem; 1711 ShellSection item = items[i]; 1715 else if (root is ShellSection shellSection) 1845 if (!foundShellContent && pivot is ShellSection shellSection && shellSection.CurrentItem != null) 1961 case ShellSection shellSection:
Shell\ShellContent.cs (3)
125 internal bool IsVisibleContent => Parent is ShellSection shellSection && shellSection.IsVisibleSection && shellSection.CurrentItem == this; 219 ((ShellSection)Parent).UpdateDisplayedPage(); 234 if (Parent is ShellSection shellSection &&
Shell\ShellExtensions.cs (1)
46 foreach (var section in item.GetItems())
Shell\ShellFlyoutItemsManager.cs (1)
115 foreach (var shellSection in (shellItem as IShellItemController).GetItems())
Shell\ShellItem.cs (20)
61 defaultValueCreator: bo => new ShellSectionCollection { Inner = new ElementCollection<ShellSection>(((ShellItem)bo).DeclaredChildren) }); 69 bool IShellItemController.ProposeSection(ShellSection shellSection, bool setValue) 91 ReadOnlyCollection<ShellSection> IShellItemController.GetItems() => ((ShellSectionCollection)Items).VisibleItemsReadOnly; 144 BindableProperty.Create(nameof(CurrentItem), typeof(ShellSection), typeof(ShellItem), null, BindingMode.TwoWay, 183 public ShellSection CurrentItem 185 get { return (ShellSection)GetValue(CurrentItemProperty); } 190 public IList<ShellSection> Items => (IList<ShellSection>)GetValue(ItemsProperty); 206 internal static ShellItem CreateFromShellSection(ShellSection shellSection) 228 result.SetBinding(TitleProperty, static (ShellSection section) => section.Title, BindingMode.OneWay, source: shellSection); 229 result.SetBinding(IconProperty, static (ShellSection section) => section.Icon, BindingMode.OneWay, source: shellSection); 230 result.SetBinding(FlyoutDisplayOptionsProperty, static (ShellSection section) => section.FlyoutDisplayOptions, BindingMode.OneTime, source: shellSection); 231 result.SetBinding(FlyoutIconProperty, static (ShellSection section) => section.FlyoutIcon, BindingMode.OneWay, source: shellSection); 236 public static implicit operator ShellItem(ShellSection shellSection) 241 public static implicit operator ShellItem(ShellContent shellContent) => (ShellSection)shellContent; 243 public static implicit operator ShellItem(TemplatedPage page) => (ShellSection)(ShellContent)page; 352 => sourceType == typeof(ShellSection) 363 ShellSection shellSection => (ShellItem)shellSection, 380 public ShellSection CurrentItem => shellItem.CurrentItem; 382 public IList<ShellSection> Items => shellItem.Items;
Shell\ShellNavigationManager.cs (6)
99 var shellSection = navigationRequest.Request.Section; 131 shellSection.SetValueFromRenderer(ShellSection.CurrentItemProperty, shellContent); 296 if (element is IShellItemController shellitem && shellitem.GetItems().FirstOrDefault() is ShellSection section) 344 ShellSection shellSection, 482 ShellSection shellSection, 517 public static ShellNavigationState GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> sectionStack, IReadOnlyList<Page> modalStack)
Shell\ShellSection.cs (22)
32 BindableProperty.CreateReadOnly(nameof(Items), typeof(ShellContentCollection), typeof(ShellSection), null, 33 defaultValueCreator: bo => new ShellContentCollection() { Inner = new ElementCollection<ShellContent>(((ShellSection)bo).DeclaredChildren) }); 207 BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay, 278 internal static ShellSection CreateFromShellContent(ShellContent shellContent) 282 var current = (ShellSection)shellContent.Parent; 290 var shellSection = new ShellSection(); 305 internal static ShellSection CreateFromTemplatedPage(TemplatedPage page) 310 public static implicit operator ShellSection(ShellContent shellContent) 315 public static implicit operator ShellSection(TemplatedPage page) 317 return (ShellSection)(ShellContent)page; 503 Application.Current?.FindMauiContext()?.CreateLogger<ShellSection>()?.LogWarning("Failed to Create Content For: {route}", route); 997 var shellSection = (ShellSection)bindable; 1056 readonly ShellSection _owner; 1058 public NavigationImpl(ShellSection owner) => _owner = owner; 1270 ShellContent shellContent => (ShellSection)shellContent, 1271 TemplatedPage page => (ShellSection)page, 1277 /// Provides a debug view for the <see cref="ShellSection"/> class. 1279 /// <param name="section">The <see cref="ShellSection"/> instance to debug.</param> 1280 private sealed class ShellSectionDebugView(ShellSection section) 1282 public ShellSection CurrentItem => section.CurrentItem;
Shell\ShellSectionCollection.cs (2)
11 internal sealed class ShellSectionCollection : ShellElementCollection<ShellSection> 25 public IReadOnlyCollection<ShellSection> VisibleItemsReadOnly => collection.VisibleItemsReadOnly;
Shell\ShellUriHandler.cs (4)
718 public ShellSection Section { get; private set; } 753 case ShellSection section: 768 Section = Content.Parent as ShellSection; 932 case ShellSection section: