1 type derived from ShellSection
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
17
public class Tab :
ShellSection
1 instantiation of ShellSection
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
288
var shellSection = new
ShellSection
();
109 references to ShellSection
Microsoft.Maui.Controls (109)
Compatibility\Handlers\Shell\iOS\IShellContext.cs (1)
19
IShellSectionRenderer CreateShellSectionRenderer(
ShellSection
shellSection);
Compatibility\Handlers\Shell\iOS\IShellSectionRenderer.cs (1)
11
ShellSection
ShellSection { get; set; }
Compatibility\Handlers\Shell\iOS\IShellSectionRootHeader.cs (1)
11
ShellSection
ShellSection { get; set; }
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (9)
52
ShellSection
_currentSection;
193
foreach (
ShellSection
shellSection in e.OldItems)
216
var
current = ShellItem.CurrentItem;
219
var
shellContent = items[j];
257
var
shellSection = (
ShellSection
)sender;
294
foreach (
var
shellContent in items)
356
void GoTo(
ShellSection
shellSection)
412
IShellSectionRenderer RendererForShellContent(
ShellSection
shellSection)
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (3)
54
ShellSection
shellSection = Shell?.CurrentItem?.CurrentItem;
83
IShellSectionRenderer IShellContext.CreateShellSectionRenderer(
ShellSection
shellSection)
196
protected virtual IShellSectionRenderer CreateShellSectionRenderer(
ShellSection
shellSection)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (5)
22
public
ShellSection
ShellSection
70
ShellSection
_shellSection;
306
protected virtual IShellSectionRootRenderer CreateShellSectionRootRenderer(
ShellSection
shellSection, IShellContext shellContext)
661
var
shellSection = shellItem?.CurrentItem;
747
if (element is
ShellSection
)
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (3)
79
public
ShellSection
ShellSection { get; set; }
133
ShellSection.SetValueFromRenderer(
ShellSection
.CurrentItemProperty, item);
259
if (e.PropertyName ==
ShellSection
.CurrentItemProperty.PropertyName)
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (3)
43
ShellSection
ShellSection
51
public ShellSectionRootRenderer(
ShellSection
shellSection, IShellContext shellContext)
320
if (e.PropertyName ==
ShellSection
.CurrentItemProperty.PropertyName)
Routing.cs (1)
44
foreach (
var
section in item.Items)
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 (18)
707
if (pivot is ShellContent || pivot is
ShellSection
|| pivot is ContentPage)
791
ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem,
ShellSection
shellSection, ShellContent shellContent, bool includeStack)
806
ShellSection
shellSection = null;
817
case
ShellSection
s:
823
shellSection = c.Parent as
ShellSection
;
899
else if (sender is
ShellSection
section)
904
bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem,
ShellSection
shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel)
930
var
shellSection = shellItem?.CurrentItem;
1235
var
section = navRequest.Request.Section;
1311
internal
ShellSection
CurrentSection => CurrentItem?.CurrentItem;
1535
var
currentContent = CurrentItem?.CurrentItem;
1643
foreach (
var
section in oldShellItem.Items)
1676
var
shellSection = shellItem.CurrentItem;
1704
var
currentItem = shellItem.CurrentItem;
1709
ShellSection
item = items[i];
1713
else if (root is
ShellSection
shellSection)
1843
if (!foundShellContent && pivot is
ShellSection
shellSection && shellSection.CurrentItem != null)
1959
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 (18)
59
defaultValueCreator: bo => new ShellSectionCollection { Inner = new ElementCollection<
ShellSection
>(((ShellItem)bo).DeclaredChildren) });
67
bool IShellItemController.ProposeSection(
ShellSection
shellSection, bool setValue)
89
ReadOnlyCollection<
ShellSection
> IShellItemController.GetItems() => ((ShellSectionCollection)Items).VisibleItemsReadOnly;
142
BindableProperty.Create(nameof(CurrentItem), typeof(
ShellSection
), typeof(ShellItem), null, BindingMode.TwoWay,
181
public
ShellSection
CurrentItem
183
get { return (
ShellSection
)GetValue(CurrentItemProperty); }
188
public IList<
ShellSection
> Items => (IList<
ShellSection
>)GetValue(ItemsProperty);
204
internal static ShellItem CreateFromShellSection(
ShellSection
shellSection)
226
result.SetBinding(TitleProperty, static (
ShellSection
section) => section.Title, BindingMode.OneWay, source: shellSection);
227
result.SetBinding(IconProperty, static (
ShellSection
section) => section.Icon, BindingMode.OneWay, source: shellSection);
228
result.SetBinding(FlyoutDisplayOptionsProperty, static (
ShellSection
section) => section.FlyoutDisplayOptions, BindingMode.OneTime, source: shellSection);
229
result.SetBinding(FlyoutIconProperty, static (
ShellSection
section) => section.FlyoutIcon, BindingMode.OneWay, source: shellSection);
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;
350
=> sourceType == typeof(
ShellSection
)
361
ShellSection
shellSection => (ShellItem)shellSection,
Shell\ShellNavigationManager.cs (9)
99
var
shellSection = navigationRequest.Request.Section;
100
var
currentShellSection = _shell.CurrentItem?.CurrentItem;
101
var
nextActiveSection = shellSection ?? shellItem?.CurrentItem;
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)
577
var
section = shell.CurrentItem.CurrentItem;
Shell\ShellSection.cs (19)
30
BindableProperty.CreateReadOnly(nameof(Items), typeof(ShellContentCollection), typeof(
ShellSection
), null,
31
defaultValueCreator: bo => new ShellContentCollection() { Inner = new ElementCollection<ShellContent>(((
ShellSection
)bo).DeclaredChildren) });
205
BindableProperty.Create(nameof(CurrentItem), typeof(ShellContent), typeof(
ShellSection
), null, BindingMode.TwoWay,
276
internal static
ShellSection
CreateFromShellContent(ShellContent shellContent)
280
var
current = (
ShellSection
)shellContent.Parent;
288
var
shellSection = new ShellSection();
303
internal static
ShellSection
CreateFromTemplatedPage(TemplatedPage page)
308
public static implicit operator
ShellSection
(ShellContent shellContent)
313
public static implicit operator
ShellSection
(TemplatedPage page)
315
return (
ShellSection
)(ShellContent)page;
490
Application.Current?.FindMauiContext()?.CreateLogger<
ShellSection
>()?.LogWarning("Failed to Create Content For: {route}", route);
984
var
shellSection = (
ShellSection
)bindable;
1043
readonly
ShellSection
_owner;
1045
public NavigationImpl(
ShellSection
owner) => _owner = owner;
1216
var
shellSection = shellItem?.CurrentItem;
1257
ShellContent shellContent => (
ShellSection
)shellContent,
1258
TemplatedPage page => (
ShellSection
)page,
Shell\ShellSectionCollection.cs (1)
6
internal sealed class ShellSectionCollection : ShellElementCollection<
ShellSection
>
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: