1 implementation of IShellController
Microsoft.Maui.Controls (1)
Shell\Shell.cs (1)
24 public partial class Shell : Page, IShellController, IPropertyPropagationController, IPageContainer<Page>, IFlyoutView
67 references to IShellController
Microsoft.Maui.Controls (67)
Compatibility\Handlers\Shell\iOS\ShellFlyoutContentRenderer.cs (5)
86 var header = ((IShellController)_shellContext.Shell).FlyoutHeader; 100 _headerView = new ShellFlyoutHeaderContainer(((IShellController)_shellContext.Shell).FlyoutHeader); 111 UpdateFlyoutFooter(((IShellController)_shellContext.Shell).FlyoutFooter); 346 var view = (_shellContext.Shell as IShellController).FlyoutContent; 379 ((IShellController)_shellContext.Shell).OnFlyoutItemSelected(element);
Compatibility\Handlers\Shell\iOS\ShellFlyoutLayoutManager.cs (1)
30 IShellController ShellController => _context.Shell;
Compatibility\Handlers\Shell\iOS\ShellFlyoutRenderer.cs (3)
207 IShellController ShellController => Shell; 237 ((IShellController)Shell).AddFlyoutBehaviorObserver(this); 255 ((IShellController)Shell).RemoveFlyoutBehaviorObserver(this);
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 (3)
213 ((IShellController)_context.Shell).AddFlyoutBehaviorObserver(this); 216 else if (newPage == null && _context?.Shell is IShellController shellController) 885 ((IShellController)_context.Shell).RemoveFlyoutBehaviorObserver(this);
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (3)
255 ((IShellController)_context.Shell).RemoveAppearanceObserver(this); 493 ((IShellController)_context.Shell).AddAppearanceObserver(this, ShellSection); 667 return ((IShellController)_context.Shell).ProposeNavigation(ShellNavigationSource.Pop, shellItem, shellSection, shellContent, stack, true);
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\ShellTableViewController.cs (1)
18 IShellController ShellController => _context.Shell;
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (3)
18 IShellController ShellController => _context.Shell; 55 var newGroups = ((IShellController)_context.Shell).GenerateFlyoutGrouping(); 90 var newGroups = ((IShellController)_context.Shell).GenerateFlyoutGrouping();
Shell\BaseShellItem.cs (1)
132 if (Parent is IShellController shell)
Shell\Shell.cs (21)
615 if (item is IShellController shell) 647 DataTemplate IShellController.GetFlyoutItemDataTemplate(BindableObject bo) 665 event EventHandler IShellController.StructureChanged 673 event EventHandler IShellController.FlyoutItemsChanged 679 View IShellController.FlyoutHeader => FlyoutHeaderView; 680 View IShellController.FlyoutFooter => FlyoutFooterView; 681 View IShellController.FlyoutContent => FlyoutContentView; 683 IShellController ShellController => this; 685 void IShellController.AddAppearanceObserver(IAppearanceObserver observer, Element pivot) 693 void IShellController.AddFlyoutBehaviorObserver(IFlyoutBehaviorObserver observer) 739 void IShellController.AppearanceChanged(Element source, bool appearanceSet) 791 ShellNavigationState IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack) 797 void IShellController.OnFlyoutItemSelected(Element element) => 800 Task IShellController.OnFlyoutItemSelectedAsync(Element element) => 904 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 909 bool IShellController.RemoveAppearanceObserver(IAppearanceObserver observer) 923 bool IShellController.RemoveFlyoutBehaviorObserver(IFlyoutBehaviorObserver observer) 926 void IShellController.UpdateCurrentState(ShellNavigationSource source) 943 ReadOnlyCollection<ShellItem> IShellController.GetItems() => ((ShellItemCollection)Items).VisibleItemsReadOnly; 945 event NotifyCollectionChangedEventHandler IShellController.ItemsCollectionChanged 1506 List<List<Element>> IShellController.GenerateFlyoutGrouping() =>
Shell\ShellExtensions.cs (1)
24 public static BaseShellItem SearchForPart(this IShellController shell, Func<BaseShellItem, bool> searchBy)
Shell\ShellFlyoutItemsManager.cs (1)
14 IShellController ShellController => _shell;
Shell\ShellItem.cs (5)
69 var controller = (IShellController)Parent; 296 if (shellItem.Parent is IShellController shell && shellItem.IsVisibleItem) 304 ((IShellController)shellItem?.Parent)?.AppearanceChanged(shellItem, false); 344 ((IShellController)Parent)?.AppearanceChanged(CurrentItem, false);
Shell\ShellNavigationManager.cs (1)
204 (_shell as IShellController).UpdateCurrentState(source);
Shell\ShellSection.cs (12)
126 (Parent?.Parent as IShellController)?.UpdateCurrentState(ShellNavigationSource.Pop); 146 (Parent?.Parent as IShellController)?.UpdateCurrentState(ShellNavigationSource.PopToRoot); 735 var allow = ((IShellController)Shell).ProposeNavigation( 765 var allow = ((IShellController)Shell).ProposeNavigation( 804 var allow = ((IShellController)Shell).ProposeNavigation( 845 var allow = ((IShellController)Shell).ProposeNavigation( 915 ((IShellController)Shell).ProposeNavigation( 994 if (shellSection.Parent?.Parent is IShellController shell && shellSection.IsVisibleSection) 1002 ((IShellController)shellSection?.Parent?.Parent)?.AppearanceChanged(shellSection, false); 1017 void SendAppearanceChanged() => ((IShellController)Parent?.Parent)?.AppearanceChanged(this, false); 1181 (_owner.Shell as IShellController).UpdateCurrentState(ShellNavigationSource.Remove); 1210 (_owner.Shell as IShellController).UpdateCurrentState(ShellNavigationSource.Insert);
Shell\ShellUriHandler.cs (1)
949 case IShellController shell: