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)
146
if (_context?.
Shell
is IShellController shellController)
248
((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();
170
NavigationItem.Title = _context.
Shell
.Toolbar.Title;
176
if (_context.
Shell
.Toolbar is ShellToolbar st)
220
((IShellController)_context.
Shell
).AddFlyoutBehaviorObserver(this);
223
else if (newPage == null && _context?.
Shell
is IShellController shellController)
244
var titleView = _context.
Shell
.Toolbar.TitleView as View;
302
var shellToolbarItems = _context?.
Shell
?.ToolbarItems;
339
image = _context.
Shell
.FlyoutIcon;
452
_context.
Shell
.SetValueFromRenderer(Shell.FlyoutIsPresentedProperty, true);
692
_searchHandlerAppearanceTracker.UpdateFlowDirection(_context.
Shell
);
696
_searchController.View.UpdateFlowDirection(_context.
Shell
);
697
_searchController.SearchBar.UpdateFlowDirection(_context.
Shell
);
836
if (_context.
Shell
.CurrentPage == Page)
851
if (_context.
Shell
.Toolbar != null)
852
_context.
Shell
.Toolbar.PropertyChanged += OnToolbarPropertyChanged;
866
if (_context?.
Shell
?.Toolbar is not null)
867
_context.
Shell
.Toolbar.PropertyChanged -= OnToolbarPropertyChanged;
892
((IShellController)_context.
Shell
).RemoveFlyoutBehaviorObserver(this);
897
_context.
Shell
.PropertyChanged -= HandleShellPropertyChanged;
899
if (_context.
Shell
.Toolbar != null)
900
_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)
89
_context.
Shell
.PropertyChanged += HandleShellPropertyChanged;
90
_context.
Shell
.Navigated += OnNavigated;
91
_context.
Shell
.Navigating += OnNavigating;
99
_context.
Shell
.PropertyChanged += HandleShellPropertyChanged;
100
_context.
Shell
.Navigated += OnNavigated;
101
_context.
Shell
.Navigating += OnNavigating;
150
await _context.
Shell
.GoToAsync("..", true);
201
View.UpdateFlowDirection(_context.
Shell
);
202
NavigationBar.UpdateFlowDirection(_context.
Shell
);
257
if (_context.
Shell
!= null)
259
_context.
Shell
.PropertyChanged -= HandleShellPropertyChanged;
260
_context.
Shell
.Navigated -= OnNavigated;
261
_context.
Shell
.Navigating -= OnNavigating;
262
((IShellController)_context.
Shell
).RemoveAppearanceObserver(this);
502
((IShellController)_context.
Shell
).AddAppearanceObserver(this, ShellSection);
682
var shellItem = _context.
Shell
.CurrentItem;
689
return ((IShellController)_context.
Shell
).ProposeNavigation(ShellNavigationSource.Pop, shellItem, shellSection, shellContent, stack, true);
788
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);
221
((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);