1 instantiation of ShellContent
Microsoft.Maui.Controls (1)
Shell\ShellContent.cs (1)
284 var shellContent = new ShellContent();
66 references to ShellContent
Microsoft.Maui.Controls (66)
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 (9)
709 if (pivot is ShellContent || pivot is ShellSection || pivot is ContentPage) 793 ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack) 809 ShellContent shellContent = null; 823 case ShellContent c: 906 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 1238 var Content = navRequest.Request.Content; 1312 internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.CurrentItem; 1722 ShellContent item = items[i]; 1837 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 (3)
14 internal sealed class ShellContentCollection : ShellElementCollection<ShellContent> 28 CheckVisibility((ShellContent)sender); 53 public IReadOnlyCollection<ShellContent> VisibleItemsReadOnly => collection.VisibleItemsReadOnly;
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)
241 public static implicit operator ShellItem(ShellContent shellContent) => (ShellSection)shellContent; 243 public static implicit operator ShellItem(TemplatedPage page) => (ShellSection)(ShellContent)page; 353 || sourceType == typeof(ShellContent) 364 ShellContent shellContent => (ShellItem)shellContent,
Shell\ShellNavigationManager.cs (10)
103 ShellContent shellContent = navigationRequest.Request.Content; 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)
33 defaultValueCreator: bo => new ShellContentCollection() { Inner = new ElementCollection<ShellContent>(((ShellSection)bo).DeclaredChildren) }); 166 ReadOnlyCollection<ShellContent> IShellSectionController.GetItems() => ((ShellContentCollection)Items).VisibleItemsReadOnly; 207 BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay, 246 public ShellContent CurrentItem 248 get { return (ShellContent)GetValue(CurrentItemProperty); } 253 public IList<ShellContent> Items => (IList<ShellContent>)GetValue(ItemsProperty); 278 internal static ShellSection CreateFromShellContent(ShellContent shellContent) 307 return CreateFromShellContent((ShellContent)page); 310 public static implicit operator ShellSection(ShellContent shellContent) 317 return (ShellSection)(ShellContent)page; 999 if (oldValue is ShellContent oldShellItem) 1036 foreach (ShellContent shellContent in Items) 1266 => sourceType == typeof(ShellContent) || sourceType == typeof(TemplatedPage); 1270 ShellContent shellContent => (ShellSection)shellContent, 1284 public IList<ShellContent> Items => section.Items;
Shell\ShellUriHandler.cs (4)
719 public ShellContent Content { get; private set; } 765 case ShellContent content: 934 case ShellContent content: 958 case ShellContent content: