1 instantiation of ShellContent
Microsoft.Maui.Controls (1)
Shell\ShellContent.cs (1)
284 var shellContent = new ShellContent();
94 references to ShellContent
Microsoft.Maui.Controls (94)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
662 var shellContent = shellSection?.CurrentItem;
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (3)
99 var shellContent = ShellSectionController.GetItems()[indexPath.Row]; 130 var item = ShellSectionController.GetItems()[row]; 147 var item = ShellSectionController.GetItems()[row];
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (20)
29 ShellContent _currentContent; 33 Dictionary<ShellContent, IPlatformViewHandler> _renderers = new Dictionary<ShellContent, IPlatformViewHandler>(); 227 var shellContent = items[i]; 247 var shellContent = items[i]; 267 Dictionary<ShellContent, Page> createdPages = new Dictionary<ShellContent, Page>(); 274 ShellContent item = contentItems[i]; 279 var currentItem = ShellSection.CurrentItem; 284 ShellContent item = contentItems[i]; 322 var newContent = ShellSection.CurrentItem; 323 var oldContent = _currentContent; 413 var activeItem = ShellSection?.CurrentItem; 419 List<ShellContent> removeMe = null; 425 var oldContent = r.Key; 432 removeMe = removeMe ?? new List<ShellContent>(); 445 foreach (var remove in removeMe) 506 foreach (ShellContent oldItem in e.OldItems) 530 foreach (ShellContent newItem in e.NewItems) 543 IPlatformViewHandler SetPageRenderer(Page page, ShellContent shellContent)
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\IShellSectionController.cs (1)
42 ReadOnlyCollection<ShellContent> GetItems();
Shell\RequestDefinition.cs (1)
48 public ShellContent Content { get; }
Shell\RouteRequestBuilder.cs (2)
22 public ShellContent Content { get; private set; } 134 case ShellContent content:
Shell\Shell.cs (13)
707 if (pivot is ShellContent || pivot is ShellSection || pivot is ContentPage) 791 ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack) 807 ShellContent shellContent = null; 821 case ShellContent c: 904 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 931 var shellContent = shellSection?.CurrentItem; 1236 var Content = navRequest.Request.Content; 1310 internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.CurrentItem; 1645 foreach (var content in section.Items) 1677 var shellContent = shellSection.CurrentItem; 1715 var currentItem = shellSection.CurrentItem; 1720 ShellContent item = items[i]; 1835 if (pivot is ShellContent)
Shell\ShellContent.cs (12)
18 BindableProperty.CreateReadOnly(nameof(MenuItems), typeof(MenuItemCollection), typeof(ShellContent), null, 26 BindableProperty.Create(nameof(Content), typeof(object), typeof(ShellContent), null, BindingMode.OneTime, propertyChanged: OnContentChanged); 30 BindableProperty.Create(nameof(ContentTemplate), typeof(DataTemplate), typeof(ShellContent), null, BindingMode.OneTime); 33 BindableProperty.CreateAttached("QueryAttributes", typeof(ShellRouteParameters), typeof(ShellContent), defaultValue: null, propertyChanged: OnQueryAttributesPropertyChanged); 96 throw new InvalidOperationException($"No Content found for {nameof(ShellContent)}, Title:{Title}, Route {Route}"); 277 public static implicit operator ShellContent(TemplatedPage page) 281 return (ShellContent)page.Parent; 284 var shellContent = new ShellContent(); 300 var shellContent = (ShellContent)bindable; 317 throw new InvalidOperationException($"{nameof(ShellContent)} {nameof(Content)} should be of type {nameof(Page)}. Title {shellContent?.Title}, Route {shellContent?.Route} "); 440 return (ShellContent)templatedPage;
Shell\ShellContentCollection.cs (2)
10 internal sealed class ShellContentCollection : ShellElementCollection<ShellContent> 24 CheckVisibility((ShellContent)sender);
Shell\ShellExtensions.cs (1)
54 foreach (var content in section.GetItems())
Shell\ShellFlyoutItemsManager.cs (1)
123 foreach (var shellContent in shellContents)
Shell\ShellItem.cs (4)
239 public static implicit operator ShellItem(ShellContent shellContent) => (ShellSection)shellContent; 241 public static implicit operator ShellItem(TemplatedPage page) => (ShellSection)(ShellContent)page; 351 || sourceType == typeof(ShellContent) 362 ShellContent shellContent => (ShellItem)shellContent,
Shell\ShellNavigationManager.cs (11)
103 ShellContent shellContent = navigationRequest.Request.Content; 222 var shellContent = _shell?.CurrentItem?.CurrentItem?.CurrentItem; 298 if (element is IShellSectionController shellsection && shellsection.GetItems().FirstOrDefault() is ShellContent content) 300 if (element is ShellContent shellcontent && shellcontent.Content is Element e) 311 if (baseShellItem is ShellContent) 314 element.SetValue(ShellContent.QueryAttributesProperty, MergeData(element, query, isPopping)); 323 var existing = (ShellRouteParameters)shellElement.GetValue(ShellContent.QueryAttributesProperty); 345 ShellContent shellContent, 483 ShellContent shellContent, 501 if (queryParametersTarget?.GetValue(ShellContent.QueryAttributesProperty) is 517 public static ShellNavigationState GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> sectionStack, IReadOnlyList<Page> modalStack)
Shell\ShellSection.cs (16)
31 defaultValueCreator: bo => new ShellContentCollection() { Inner = new ElementCollection<ShellContent>(((ShellSection)bo).DeclaredChildren) }); 164 ReadOnlyCollection<ShellContent> IShellSectionController.GetItems() => ((ShellContentCollection)Items).VisibleItemsReadOnly; 205 BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay, 244 public ShellContent CurrentItem 246 get { return (ShellContent)GetValue(CurrentItemProperty); } 251 public IList<ShellContent> Items => (IList<ShellContent>)GetValue(ItemsProperty); 276 internal static ShellSection CreateFromShellContent(ShellContent shellContent) 305 return CreateFromShellContent((ShellContent)page); 308 public static implicit operator ShellSection(ShellContent shellContent) 315 return (ShellSection)(ShellContent)page; 986 if (oldValue is ShellContent oldShellItem) 1023 foreach (ShellContent shellContent in Items) 1217 var shellContent = shellSection?.CurrentItem; 1253 => sourceType == typeof(ShellContent) || sourceType == typeof(TemplatedPage); 1257 ShellContent shellContent => (ShellSection)shellContent,
Shell\ShellUriHandler.cs (4)
719 public ShellContent Content { get; private set; } 765 case ShellContent content: 934 case ShellContent content: 958 case ShellContent content: