284 references to Shell
Microsoft.Maui.Controls (284)
BindableObject.cs (2)
396 if (Shell.GetBackButtonBehavior(this) is BackButtonBehavior buttonBehavior) 399 if (Shell.GetSearchHandler(this) is SearchHandler searchHandler)
Compatibility\Handlers\Shell\iOS\IShellContext.cs (1)
13 Shell Shell { get; }
Compatibility\Handlers\Shell\iOS\SearchHandlerAppearanceTracker.cs (1)
63 internal void UpdateFlowDirection(Shell shell)
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (11)
51 Shell.FlyoutBackgroundColorProperty, 52 Shell.FlyoutBackgroundProperty, 53 Shell.FlyoutBackgroundImageProperty, 54 Shell.FlyoutBackgroundImageAspectProperty)) 59 Shell.FlyoutHeaderProperty, 60 Shell.FlyoutHeaderTemplateProperty)) 65 Shell.FlyoutFooterProperty, 66 Shell.FlyoutFooterTemplateProperty)) 71 Shell.FlyoutContentProperty, 72 Shell.FlyoutContentTemplateProperty)) 256 if (imageSource is null || !_shellContext.Shell.IsSet(Shell.FlyoutBackgroundImageProperty))
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (2)
357 if (e.Is(Shell.FlyoutHeaderBehaviorProperty)) 362 else if (e.Is(Shell.FlyoutVerticalScrollModeProperty))
Compatibility\Handlers\Shell\iOS\ShellFlyoutRenderer.cs (3)
165 Shell.SetValueFromRenderer(Shell.FlyoutIsPresentedProperty, value); 205 Shell Shell { get; set; } 266 if (e.PropertyName == Shell.FlyoutIsPresentedProperty.PropertyName)
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (1)
397 if (e.PropertyName == Shell.TabBarIsVisibleProperty.PropertyName)
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (12)
92 else if (e.Is(Shell.FlyoutIconProperty)) 113 if (e.PropertyName == Shell.BackButtonBehaviorProperty.PropertyName) 115 SetBackButtonBehavior(Shell.GetBackButtonBehavior(Page)); 117 else if (e.PropertyName == Shell.SearchHandlerProperty.PropertyName) 119 SearchHandler = Shell.GetSearchHandler(Page); 121 else if (e.IsOneOf(Shell.TitleViewProperty, VisualElement.HeightProperty, VisualElement.WidthProperty)) 129 else if (e.PropertyName == Shell.TabBarIsVisibleProperty.PropertyName) 138 (Page.FindParentOfType<ShellItem>() as IShellItemController)?.ShowTabs ?? Shell.GetTabBarIsVisible(Page); 148 if (e.PropertyName == Shell.TitleViewProperty.PropertyName) 180 SetBackButtonBehavior(Shell.GetBackButtonBehavior(Page)); 181 SearchHandler = Shell.GetSearchHandler(Page); 445 _context.Shell.SetValueFromRenderer(Shell.FlyoutIsPresentedProperty, true);
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (9)
16 public static IPropertyMapper<Shell, ShellRenderer> Mapper = new PropertyMapper<Shell, ShellRenderer>(ViewHandler.ViewMapper); 17 public static CommandMapper<Shell, ShellRenderer> CommandMapper = new CommandMapper<Shell, ShellRenderer>(ViewHandler.ViewCommandMapper); 120 public Shell Shell => (Shell)Element; 128 OnElementSet((Shell)Element); 253 if (e.PropertyName == Shell.CurrentItemProperty.PropertyName) 285 protected virtual void OnElementSet(Shell element)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (6)
117 var behavior = Shell.GetBackButtonBehavior(tracker.Value.Page); 549 if (e.PropertyName == Shell.NavBarIsVisibleProperty.PropertyName) 551 else if (e.PropertyName == Shell.NavBarHasShadowProperty.PropertyName) 672 SetNavigationBarHidden(!Shell.GetNavBarIsVisible(_displayedPage), true); 677 _appearanceTracker.SetHasShadow(this, Shell.GetNavBarHasShadow(_displayedPage)); 750 navBarVisible = Shell.GetNavBarIsVisible(element);
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
19 bool IShellSectionRootRenderer.ShowNavBar => Shell.GetNavBarIsVisible(((IShellContentController)ShellSection.CurrentItem).GetOrCreateContent());
Compatibility\Handlers\Shell\iOS\UIContainerCell.cs (2)
18 internal UIContainerCell(string cellId, View view, Shell shell, object context) : base(UITableViewCellStyle.Default, cellId) 63 internal void Disconnect(Shell shell = null, bool keepRenderer = false)
Hosting\AppHostBuilderExtensions.cs (1)
150 handlersCollection.AddHandler<Shell, ShellRenderer>();
Internals\PropertyPropagationExtensions.cs (6)
20 if (propertyName == null || propertyName == Shell.NavBarHasShadowProperty.PropertyName) 21 BaseShellItem.PropagateFromParent(Shell.NavBarHasShadowProperty, element); 23 if (propertyName == null || propertyName == Shell.TabBarIsVisibleProperty.PropertyName) 24 BaseShellItem.PropagateFromParent(Shell.TabBarIsVisibleProperty, element); 26 if (propertyName == null || propertyName == Shell.NavBarIsVisibleProperty.PropertyName) 27 BaseShellItem.PropagateFromParent(Shell.NavBarIsVisibleProperty, element);
Menu\MenuItemTracker.cs (5)
130 else if (page is Shell shell) 209 if (page is Shell shell) 230 if (((Shell)sender).GetCurrentShellPage() is Page page) 236 if (((Shell)sender).GetCurrentShellPage() is Page page) 263 if (page is Shell shell)
NavigationModel.cs (2)
114 _navTree[0][0] is not Shell) 202 _navTree[0][0] is not Shell)
Page\Page.cs (1)
465 if (RealParent is BaseShellItem || RealParent is Shell)
Platform\iOS\ControlsModalWrapper.cs (1)
67 if (window?.Page is Shell shell)
Platform\ModalNavigationManager\ModalNavigationManager.cs (4)
33 if (currentPage is Shell shell) 42 bool FireLifeCycleEvents => _window?.Page is not Shell; 224 if (_window.Page is Shell shell) 271 if (_window.Page is Shell shell)
Platform\PageExtensions.cs (1)
15 else if (currentPage is Shell shell && shell.CurrentItem?.CurrentItem is IShellSectionController ssc)
Properties\AssemblyInfo.cs (22)
164[assembly: StyleProperty("-maui-flyout-background", typeof(Shell), nameof(Shell.FlyoutBackgroundColorProperty))] 165[assembly: StyleProperty("-maui-shell-background", typeof(Element), nameof(Shell.BackgroundColorProperty), PropertyOwnerType = typeof(Shell))] 166[assembly: StyleProperty("-maui-shell-disabled", typeof(Element), nameof(Shell.DisabledColorProperty), PropertyOwnerType = typeof(Shell))] 167[assembly: StyleProperty("-maui-shell-foreground", typeof(Element), nameof(Shell.ForegroundColorProperty), PropertyOwnerType = typeof(Shell))] 168[assembly: StyleProperty("-maui-shell-tabbar-background", typeof(Element), nameof(Shell.TabBarBackgroundColorProperty), PropertyOwnerType = typeof(Shell))] 169[assembly: StyleProperty("-maui-shell-tabbar-disabled", typeof(Element), nameof(Shell.TabBarDisabledColorProperty), PropertyOwnerType = typeof(Shell))] 170[assembly: StyleProperty("-maui-shell-tabbar-foreground", typeof(Element), nameof(Shell.TabBarForegroundColorProperty), PropertyOwnerType = typeof(Shell))] 171[assembly: StyleProperty("-maui-shell-tabbar-title", typeof(Element), nameof(Shell.TabBarTitleColorProperty), PropertyOwnerType = typeof(Shell))] 172[assembly: StyleProperty("-maui-shell-tabbar-unselected", typeof(Element), nameof(Shell.TabBarUnselectedColorProperty), PropertyOwnerType = typeof(Shell))] 173[assembly: StyleProperty("-maui-shell-title", typeof(Element), nameof(Shell.TitleColorProperty), PropertyOwnerType = typeof(Shell))] 174[assembly: StyleProperty("-maui-shell-unselected", typeof(Element), nameof(Shell.UnselectedColorProperty), PropertyOwnerType = typeof(Shell))]
Routing.cs (1)
40 internal static void RegisterImplicitPageRoutes(Shell shell)
Shell\BaseShellItem.cs (7)
219 if (shellItem.FindParentOfType<Shell>()?.Toolbar is ShellToolbar st) 234 Shell.SetFlyoutItemIsVisible(bindable, (bool)newValue); 242 if (propertyName == Shell.ItemTemplateProperty.PropertyName || propertyName == nameof(Parent)) 243 Propagate(Shell.ItemTemplateProperty, this, Parent, true); 263 if (to is Shell) 339 if (Parent is Shell) 537 var styleClassSource = Shell.GetBindableObjectWithFlyoutItemTemplate(bo) as IStyleSelectable;
Shell\MenuShellItem.cs (11)
16 Shell.SetFlyoutItemIsVisible(this, Shell.GetFlyoutItemIsVisible(menuItem)); 32 if (e.PropertyName == Shell.MenuItemTemplateProperty.PropertyName) 33 Shell.SetMenuItemTemplate(this, Shell.GetMenuItemTemplate(MenuItem)); 36 else if (e.PropertyName == Shell.FlyoutItemIsVisibleProperty.PropertyName) 37 Shell.SetFlyoutItemIsVisible(this, Shell.GetFlyoutItemIsVisible(MenuItem)); 45 else if (propertyName == Shell.FlyoutItemIsVisibleProperty.PropertyName && MenuItem != null) 46 Shell.SetFlyoutItemIsVisible(MenuItem, Shell.GetFlyoutItemIsVisible(this));
Shell\RequestDefinition.cs (1)
11 public RequestDefinition(RouteRequestBuilder theWinningRoute, Shell shell)
Shell\RouteRequestBuilder.cs (3)
19 public Shell Shell { get; private set; } 109 case Shell shell: 154 if (Item?.Parent is Shell s)
Shell\Shell.cs (83)
35 BindableProperty.CreateAttached("BackButtonBehavior", typeof(BackButtonBehavior), typeof(Shell), null, BindingMode.OneTime, 50 public static readonly BindableProperty PresentationModeProperty = BindableProperty.CreateAttached("PresentationMode", typeof(PresentationMode), typeof(Shell), PresentationMode.Animated); 60 BindableProperty.CreateAttached(nameof(FlyoutBehavior), typeof(FlyoutBehavior), typeof(Shell), FlyoutBehavior.Flyout, 67 BindableProperty.CreateAttached("NavBarIsVisible", typeof(bool), typeof(Shell), true, propertyChanged: OnNavBarIsVisibleChanged); 73 Shell shell = bindable as Shell 74 ?? (bindable as BaseShellItem)?.FindParentOfType<Shell>() 75 ?? (bindable as Page)?.FindParentOfType<Shell>(); 84 BindableProperty.CreateAttached("NavBarHasShadow", typeof(bool), typeof(Shell), default(bool), 88 /// Controls the <see cref = "Shell" /> search functionality. 91 BindableProperty.CreateAttached("SearchHandler", typeof(SearchHandler), typeof(Shell), null, BindingMode.OneTime, 107 BindableProperty.CreateAttached("FlyoutItemIsVisible", typeof(bool), typeof(Shell), true, propertyChanged: OnFlyoutItemIsVisibleChanged); 122 .FindParentOfType<Shell>() 133 /// The tab bar and tabs are visible in <see cref = "Shell" /> applications by default. 136 BindableProperty.CreateAttached("TabBarIsVisible", typeof(bool), typeof(Shell), true); 142 BindableProperty.CreateAttached("TitleView", typeof(View), typeof(Shell), null, propertyChanged: OnTitleViewChanged); 148 BindableProperty.CreateAttached(nameof(MenuItemTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime); 172 BindableProperty.CreateAttached(nameof(ItemTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime); 349 if (element is Shell shell) 360 BindableProperty.CreateAttached("BackgroundColor", typeof(Color), typeof(Shell), null, 367 BindableProperty.CreateAttached("DisabledColor", typeof(Color), typeof(Shell), null, 374 BindableProperty.CreateAttached("ForegroundColor", typeof(Color), typeof(Shell), null, 381 BindableProperty.CreateAttached("TabBarBackgroundColor", typeof(Color), typeof(Shell), null, 388 BindableProperty.CreateAttached("TabBarDisabledColor", typeof(Color), typeof(Shell), null, 393 BindableProperty.CreateAttached("TabBarForegroundColor", typeof(Color), typeof(Shell), null, 400 BindableProperty.CreateAttached("TabBarTitleColor", typeof(Color), typeof(Shell), null, 407 BindableProperty.CreateAttached("TabBarUnselectedColor", typeof(Color), typeof(Shell), null, 414 BindableProperty.CreateAttached("TitleColor", typeof(Color), typeof(Shell), null, 421 BindableProperty.CreateAttached("UnselectedColor", typeof(Color), typeof(Shell), null, 428 BindableProperty.CreateAttached(nameof(FlyoutBackdrop), typeof(Brush), typeof(Shell), Brush.Default, 436 BindableProperty.CreateAttached(nameof(FlyoutWidth), typeof(double), typeof(Shell), -1d, 444 BindableProperty.CreateAttached(nameof(FlyoutHeight), typeof(double), typeof(Shell), -1d, 625 BindableProperty.CreateReadOnly(nameof(CurrentState), typeof(ShellNavigationState), typeof(Shell), null); 627 static readonly BindablePropertyKey ItemsPropertyKey = BindableProperty.CreateReadOnly(nameof(Items), typeof(ShellItemCollection), typeof(Shell), null, 628 defaultValueCreator: bo => new ShellItemCollection { Inner = new ElementCollection<ShellItem>(((Shell)bo).InternalChildren) }); 952 public static Shell Current 961 return Application.Current.Windows[0].Page as Shell; 965 Shell currentShell = null; 966 Shell returnIfThereIsJustOneShell = null; 970 if (window.Page is Shell shell) 1060 BindableProperty.Create(nameof(CurrentItem), typeof(ShellItem), typeof(Shell), null, BindingMode.TwoWay, 1074 BindableProperty.Create(nameof(FlyoutBackgroundImage), typeof(ImageSource), typeof(Shell), default(ImageSource), BindingMode.OneTime); 1080 BindableProperty.Create(nameof(FlyoutBackgroundImageAspect), typeof(Aspect), typeof(Shell), default(Aspect), BindingMode.OneTime); 1086 BindableProperty.Create(nameof(FlyoutBackgroundColor), typeof(Color), typeof(Shell), null, BindingMode.OneTime); 1090 BindableProperty.Create(nameof(FlyoutBackground), typeof(Brush), typeof(Shell), SolidColorBrush.Default, BindingMode.OneTime); 1094 BindableProperty.Create(nameof(FlyoutHeaderBehavior), typeof(FlyoutHeaderBehavior), typeof(Shell), FlyoutHeaderBehavior.Default, BindingMode.OneTime); 1101 BindableProperty.Create(nameof(FlyoutHeader), typeof(object), typeof(Shell), null, BindingMode.OneTime, 1109 BindableProperty.Create(nameof(FlyoutFooter), typeof(object), typeof(Shell), null, BindingMode.OneTime, 1116 BindableProperty.Create(nameof(FlyoutHeaderTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime, 1123 BindableProperty.Create(nameof(FlyoutFooterTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime, 1130 BindableProperty.Create(nameof(FlyoutIsPresented), typeof(bool), typeof(Shell), false, BindingMode.TwoWay); 1140 BindableProperty.Create(nameof(FlyoutIcon), typeof(ImageSource), typeof(Shell), null); 1147 BindableProperty.Create(nameof(FlyoutVerticalScrollMode), typeof(ScrollMode), typeof(Shell), ScrollMode.Auto); 1171 this.SetBinding(Shell.FlyoutBackgroundColorProperty, 1258 Application.Current?.FindMauiContext()?.CreateLogger<Shell>()?.LogWarning(exc, "If you're using hot reload add a route to everything in your shell file"); 1554 Application.Current?.FindMauiContext()?.CreateLogger<Shell>()?.LogWarning(exc, "Failed to Navigate Back"); 1603 CurrentItem?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName); 1612 if (e.Is(Shell.TabBarIsVisibleProperty)) 1613 CurrentItem?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName); 1658 var shell = (Shell)bindable; 1670 var shell = (Shell)bindable; 1691 if (root is Shell shell) 1728 var shell = (Shell)bindable; 1734 var shell = (Shell)bindable; 1740 var shell = (Shell)bindable; 1746 var shell = (Shell)bindable; 1756 return GetEffectiveValue(Shell.FlyoutBehaviorProperty, 1953 case Shell shell: 2000 if (propertyName == Shell.FlyoutIsPresentedProperty.PropertyName) 2014 BindableProperty.Create(nameof(FlyoutContent), typeof(object), typeof(Shell), null, BindingMode.OneTime, propertyChanging: OnFlyoutContentChanging); 2021 BindableProperty.Create(nameof(FlyoutContentTemplate), typeof(DataTemplate), typeof(Shell), null, BindingMode.OneTime, propertyChanging: OnFlyoutContentTemplateChanging); 2065 var shell = (Shell)bindable; 2071 var shell = (Shell)bindable; 2078 readonly Shell _shell; 2082 public NavigationImpl(Shell shell) => _shell = shell;
Shell\ShellAppearance.cs (13)
15 Shell.BackgroundColorProperty, 16 Shell.DisabledColorProperty, 17 Shell.ForegroundColorProperty, 18 Shell.TabBarBackgroundColorProperty, 19 Shell.TabBarDisabledColorProperty, 20 Shell.TabBarForegroundColorProperty, 21 Shell.TabBarTitleColorProperty, 22 Shell.TabBarUnselectedColorProperty, 23 Shell.TitleColorProperty, 24 Shell.UnselectedColorProperty 29 Shell.FlyoutBackdropProperty 34 Shell.FlyoutWidthProperty, 35 Shell.FlyoutHeightProperty
Shell\ShellContent.cs (4)
155 this.FindParentOfType<Shell>().SendPageAppearing(page); 161 this.FindParentOfType<Shell>().SendPageAppearing(page); 232 Shell shell = null; 236 shellItem.Parent is Shell shellInstance)
Shell\ShellExtensions.cs (2)
10 public static T SearchForRoute<T>(this Shell shell, string route) where T : BaseShellItem => 13 public static BaseShellItem SearchForRoute(this Shell shell, string route) =>
Shell\ShellFlyoutItemsManager.cs (4)
11 readonly Shell _shell; 18 public ShellFlyoutItemsManager(Shell shell) 211 return Shell.GetFlyoutItemIsVisible(msi.MenuItem); 213 return Shell.GetFlyoutItemIsVisible(bo);
Shell\ShellGroupItem.cs (1)
15 ((Element)bindable).FindParentOfType<Shell>()?.SendFlyoutItemsChanged();
Shell\ShellItem.cs (7)
101 Shell shell = Parent as Shell; 127 return shell.GetEffectiveValue<bool>(Shell.TabBarIsVisibleProperty, () => defaultShowTabs, null, displayedPage); 191 internal bool IsVisibleItem => Parent is Shell shell && shell?.CurrentItem == this; 195 if (Parent is Shell shell) 290 if (shellItem.Parent is Shell) 328 if (CurrentItem != null && Parent is Shell shell && shell.CurrentItem == this)
Shell\ShellNavigationManager.cs (6)
13 readonly Shell _shell; 20 public ShellNavigationManager(Shell shell) 148 _shell.SetValueFromRenderer(Shell.CurrentItemProperty, shellItem); 272 void FireNavigatedEvents(ShellNavigatedEventArgs a, Shell shell) 407 public static ShellNavigationSource CalculateNavigationSource(Shell shell, ShellNavigationState current, ShellNavigationRequest request) 575 public static List<Page> BuildFlattenedNavigationStack(Shell shell)
Shell\ShellSection.cs (11)
272 Shell Shell => Parent?.Parent as Shell; 615 return (Shell.GetPresentationMode(bo) & PresentationMode.Modal) == PresentationMode.Modal; 620 return (Shell.GetPresentationMode(bo) & PresentationMode.NotAnimated) != PresentationMode.NotAnimated; 625 if (Parent?.Parent is Shell shell) 896 bool isAnimated = animated ?? (Shell.GetPresentationMode(pageToPop) & PresentationMode.NotAnimated) != PresentationMode.NotAnimated; 943 internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.CurrentItem?.CurrentItem == this; 976 this.FindParentOfType<Shell>().SendPageAppearing(presentedPage); 1079 var shell = _owner.Shell; 1136 Shell.SetPresentationMode(modal, PresentationMode.ModalAnimated); 1138 Shell.SetPresentationMode(modal, PresentationMode.ModalNotAnimated);
Shell\ShellTemplatedViewManager.cs (1)
50 Shell shell)
Shell\ShellUriHandler.cs (14)
17 internal static Uri FormatUri(Uri path, Shell shell) 131 public static Uri ConvertToStandardFormat(Shell shell, Uri request) 176 internal static ShellNavigationRequest GetNavigationRequest(Shell shell, Uri uri, bool enableRelativeShellRoutes = false, bool throwNavigationErrorAsException = true, ShellNavigationParameters shellNavigationParameters = null) 222 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request) 228 internal static List<RouteRequestBuilder> GenerateRoutePaths(Shell shell, Uri request, Uri originalRequest, bool enableRelativeShellRoutes) 346 Shell shell, 716 public Shell Shell { get; private set; } 724 public static NodeLocation Create(Shell shell) 740 case Shell shell: 751 Shell = (Shell)Item.Parent; 760 Shell = (Shell)Item.Parent; 774 Shell = (Shell)Item.Parent; 928 case Shell shell: 979 if (key.StartsWith(_pathSeparator, StringComparison.Ordinal) && !(node is Shell))
ShellToolbar.cs (17)
13 Shell _shell; 24 public ShellToolbar(Shell shell) : base(shell) 33 Shell.CurrentItemProperty, 34 Shell.FlyoutBehaviorProperty, 35 Shell.BackButtonBehaviorProperty, 36 Shell.NavBarIsVisibleProperty, 37 Shell.TitleViewProperty)) 41 else if (p.Is(Shell.TitleProperty)) 103 if (_shell.IsSet(Shell.NavBarIsVisibleProperty)) 104 return (bool)_shell.GetValue(Shell.NavBarIsVisibleProperty); 122 IsVisible = _shell.GetEffectiveValue(Shell.NavBarIsVisibleProperty, getDefaultNavBarIsVisible, observer: null); 130 var bbb = Shell.GetBackButtonBehavior(_currentPage); 154 Shell.BackButtonBehaviorProperty, 155 Shell.NavBarIsVisibleProperty, 156 Shell.TitleViewProperty)) 165 Shell.TitleViewProperty, 166 Shell.GetTitleView(_shell));
Window\Window.cs (4)
112 string? ITitledElement.Title => Title ?? (Page as Shell)?.Title; 619 if (oldPage is Shell shell) 641 if (newPage is Shell newShell) 671 if (e.PropertyName == nameof(Shell.Title))