1 implementation of Shell
Microsoft.Maui.Controls (1)
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
120 public Shell Shell => (Shell)Element;
94 references to Shell
Microsoft.Maui.Controls (94)
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (15)
40 context.Shell.PropertyChanged += HandleShellPropertyChanged; 80 _tableViewController.View.UpdateFlowDirection(_shellContext.Shell); 81 _headerView?.UpdateFlowDirection(_shellContext.Shell); 86 var header = ((IShellController)_shellContext.Shell).FlyoutHeader; 100 _headerView = new ShellFlyoutHeaderContainer(((IShellController)_shellContext.Shell).FlyoutHeader); 111 UpdateFlyoutFooter(((IShellController)_shellContext.Shell).FlyoutFooter); 233 var color = _shellContext.Shell.FlyoutBackgroundColor; 234 var brush = _shellContext.Shell.FlyoutBackground; 255 var imageSource = _shellContext.Shell.FlyoutBackgroundImage; 256 if (imageSource is null || !_shellContext.Shell.IsSet(Shell.FlyoutBackgroundImageProperty)) 264 var mauiContext = _shellContext.Shell.FindMauiContext(); 277 _shellContext.Shell.FlyoutBackgroundImage != imageSource) 284 switch (_shellContext.Shell.FlyoutBackgroundImageAspect) 346 var view = (_shellContext.Shell as IShellController).FlyoutContent; 379 ((IShellController)_shellContext.Shell).OnFlyoutItemSelected(element);
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (9)
30 IShellController ShellController => _context.Shell; 34 _context.Shell.PropertyChanged += OnShellPropertyChanged; 69 var renderer = Content.ToHandler(_context.Shell.FindMauiContext()); 244 switch (_context.Shell.FlyoutVerticalScrollMode) 293 if (_context.Shell.FlyoutHeaderBehavior == FlyoutHeaderBehavior.Scroll && HeaderViewTopVerticalOffset > 0 && _headerOffset < 0) 373 var headerBehavior = _context.Shell.FlyoutHeaderBehavior; 401 if (ScrollView is not null && contentOffsetY is not null && _context.Shell.FlyoutHeaderBehavior == FlyoutHeaderBehavior.CollapseOnScroll) 452 if (_context.Shell.FlyoutHeaderBehavior == FlyoutHeaderBehavior.CollapseOnScroll) 470 _context.Shell.PropertyChanged -= OnShellPropertyChanged;
Compatibility\Handlers\Shell\iOS\ShellFlyoutRenderer.cs (1)
56 Shell = Context.Shell;
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (2)
147 if (_context?.Shell is IShellController shellController) 249 ((IShellController)_context.Shell).AddAppearanceObserver(this, shellItem);
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (23)
71 IMauiContext MauiContext => Page?.FindMauiContext() ?? _context.Shell.FindMauiContext(); 77 _context.Shell.PropertyChanged += HandleShellPropertyChanged; 79 _fontManager = context.Shell.RequireFontManager(); 163 NavigationItem.Title = _context.Shell.Toolbar.Title; 169 if (_context.Shell.Toolbar is ShellToolbar st) 213 ((IShellController)_context.Shell).AddFlyoutBehaviorObserver(this); 216 else if (newPage == null && _context?.Shell is IShellController shellController) 237 var titleView = _context.Shell.Toolbar.TitleView as View; 295 var shellToolbarItems = _context?.Shell?.ToolbarItems; 332 image = _context.Shell.FlyoutIcon; 445 _context.Shell.SetValueFromRenderer(Shell.FlyoutIsPresentedProperty, true); 685 _searchHandlerAppearanceTracker.UpdateFlowDirection(_context.Shell); 689 _searchController.View.UpdateFlowDirection(_context.Shell); 690 _searchController.SearchBar.UpdateFlowDirection(_context.Shell); 829 if (_context.Shell.CurrentPage == Page) 844 if (_context.Shell.Toolbar != null) 845 _context.Shell.Toolbar.PropertyChanged += OnToolbarPropertyChanged; 859 if (_context?.Shell?.Toolbar is not null) 860 _context.Shell.Toolbar.PropertyChanged -= OnToolbarPropertyChanged; 885 ((IShellController)_context.Shell).RemoveFlyoutBehaviorObserver(this); 890 _context.Shell.PropertyChanged -= HandleShellPropertyChanged; 892 if (_context.Shell.Toolbar != null) 893 _context.Shell.Toolbar.PropertyChanged -= OnToolbarPropertyChanged;
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (3)
121 var cellId = ((IDataTemplateController)template.SelectDataTemplate(context, _context.Shell)).IdString; 127 var view = (View)template.CreateContent(context, _context.Shell); 129 view.Parent = _context.Shell;
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (18)
87 _context.Shell.PropertyChanged += HandleShellPropertyChanged; 88 _context.Shell.Navigated += OnNavigated; 89 _context.Shell.Navigating += OnNavigating; 97 _context.Shell.PropertyChanged += HandleShellPropertyChanged; 98 _context.Shell.Navigated += OnNavigated; 99 _context.Shell.Navigating += OnNavigating; 143 await _context.Shell.GoToAsync("..", true); 194 View.UpdateFlowDirection(_context.Shell); 195 NavigationBar.UpdateFlowDirection(_context.Shell); 250 if (_context.Shell != null) 252 _context.Shell.PropertyChanged -= HandleShellPropertyChanged; 253 _context.Shell.Navigated -= OnNavigated; 254 _context.Shell.Navigating -= OnNavigating; 255 ((IShellController)_context.Shell).RemoveAppearanceObserver(this); 493 ((IShellController)_context.Shell).AddAppearanceObserver(this, ShellSection); 660 var shellItem = _context.Shell.CurrentItem; 667 return ((IShellController)_context.Shell).ProposeNavigation(ShellNavigationSource.Pop, shellItem, shellSection, shellContent, stack, true); 764 var currentPage = _self._context?.Shell?.GetCurrentShellPage();
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (3)
148 IShellController shellController = _shellContext.Shell; 198 ((IShellController)_shellContext.Shell).AddAppearanceObserver(this, ShellSection); 217 ((IShellController)_shellContext.Shell).RemoveAppearanceObserver(this);
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (7)
55 _shellContext.Shell.PropertyChanged += HandleShellPropertyChanged; 150 var application = _shellContext?.Shell?.FindMauiContext().Services.GetService<IApplication>(); 164 if (_shellContext?.Shell != null) 165 _shellContext.Shell.PropertyChanged -= HandleShellPropertyChanged; 208 _shellContext.Shell.PropertyChanged -= HandleShellPropertyChanged; 492 if (_shellContext?.Shell?.CurrentItem?.CurrentItem == ShellSection) 493 this.View.UpdateFlowDirection(_shellContext.Shell);
Compatibility\Handlers\Shell\iOS\ShellTableViewController.cs (1)
18 IShellController ShellController => _context.Shell;
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (12)
18 IShellController ShellController => _context.Shell; 39 cell.Disconnect(_context.Shell); 55 var newGroups = ((IShellController)_context.Shell).GenerateFlyoutGrouping(); 84 cell.Disconnect(_context.Shell); 90 var newGroups = ((IShellController)_context.Shell).GenerateFlyoutGrouping(); 98 cell.Disconnect(_context.Shell); 152 if (DefaultMenuItemTemplate != null && _context.Shell.MenuItemTemplate == template) 157 if (DefaultItemTemplate != null && _context.Shell.ItemTemplate == template) 161 var cellId = ((IDataTemplateController)template.SelectDataTemplate(context, _context.Shell)).IdString; 166 var view = (View)template.CreateContent(context, _context.Shell); 167 cell = new UIContainerCell(cellId, view, _context.Shell, context); 173 cell = new UIContainerCell(cellId, view, _context.Shell, context);