1 implementation of IShellController
Microsoft.Maui.Controls (1)
Shell\Shell.cs (1)
26
public partial class Shell : Page,
IShellController
, IPropertyPropagationController, IPageContainer<Page>, IFlyoutView
54 references to IShellController
Microsoft.Maui.Controls (54)
Handlers\Shell\ShellItemHandler.Tizen.cs (4)
27
(view.FindParentOfType<Shell>() as
IShellController
)?.AddAppearanceObserver(this, VirtualView);
34
if (VirtualView.Parent is
IShellController
controller)
43
if (VirtualView.Parent is
IShellController
controller)
81
(VirtualView.FindParentOfType<Shell>() as
IShellController
)?.RemoveAppearanceObserver(this);
Handlers\Shell\ShellSectionHandler.Tizen.cs (2)
66
(view.FindParentOfType<Shell>() as
IShellController
)?.AddAppearanceObserver(this, VirtualView);
105
(VirtualView.FindParentOfType<Shell>() as
IShellController
)?.RemoveAppearanceObserver(this);
Handlers\Shell\Tizen\ShellFlyoutItemAdaptor.cs (2)
28
_headerCache = ((
IShellController
)_shell).FlyoutHeader;
66
DataTemplate? dataTemplate = (container as
IShellController
)?.GetFlyoutItemDataTemplate(bo);
Handlers\Shell\Tizen\ShellView.cs (3)
52
protected
IShellController
ShellController => (Element as
IShellController
)!;
458
((
IShellController
)Element!).OnFlyoutItemSelected(selectedItem);
Shell\BaseShellItem.cs (1)
133
if (Parent is
IShellController
shell)
Shell\Shell.cs (21)
617
if (item is
IShellController
shell)
649
DataTemplate
IShellController
.GetFlyoutItemDataTemplate(BindableObject bo)
667
event EventHandler
IShellController
.StructureChanged
675
event EventHandler
IShellController
.FlyoutItemsChanged
681
View
IShellController
.FlyoutHeader => FlyoutHeaderView;
682
View
IShellController
.FlyoutFooter => FlyoutFooterView;
683
View
IShellController
.FlyoutContent => FlyoutContentView;
685
IShellController
ShellController => this;
687
void
IShellController
.AddAppearanceObserver(IAppearanceObserver observer, Element pivot)
695
void
IShellController
.AddFlyoutBehaviorObserver(IFlyoutBehaviorObserver observer)
741
void
IShellController
.AppearanceChanged(Element source, bool appearanceSet)
793
ShellNavigationState
IShellController
.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack)
799
void
IShellController
.OnFlyoutItemSelected(Element element) =>
802
Task
IShellController
.OnFlyoutItemSelectedAsync(Element element) =>
906
bool
IShellController
.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel)
911
bool
IShellController
.RemoveAppearanceObserver(IAppearanceObserver observer)
925
bool
IShellController
.RemoveFlyoutBehaviorObserver(IFlyoutBehaviorObserver observer)
928
void
IShellController
.UpdateCurrentState(ShellNavigationSource source)
945
ReadOnlyCollection<ShellItem>
IShellController
.GetItems() => ((ShellItemCollection)Items).VisibleItemsReadOnly;
947
event NotifyCollectionChangedEventHandler
IShellController
.ItemsCollectionChanged
1508
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)
71
var
controller = (
IShellController
)Parent;
298
if (shellItem.Parent is
IShellController
shell && shellItem.IsVisibleItem)
306
((
IShellController
)shellItem?.Parent)?.AppearanceChanged(shellItem, false);
346
((
IShellController
)Parent)?.AppearanceChanged(CurrentItem, false);
Shell\ShellNavigationManager.cs (1)
204
(_shell as
IShellController
).UpdateCurrentState(source);
Shell\ShellSection.cs (12)
128
(Parent?.Parent as
IShellController
)?.UpdateCurrentState(ShellNavigationSource.Pop);
148
(Parent?.Parent as
IShellController
)?.UpdateCurrentState(ShellNavigationSource.PopToRoot);
748
var allow = ((
IShellController
)Shell).ProposeNavigation(
778
var allow = ((
IShellController
)Shell).ProposeNavigation(
817
var allow = ((
IShellController
)Shell).ProposeNavigation(
858
var allow = ((
IShellController
)Shell).ProposeNavigation(
928
((
IShellController
)Shell).ProposeNavigation(
1007
if (shellSection.Parent?.Parent is
IShellController
shell && shellSection.IsVisibleSection)
1015
((
IShellController
)shellSection?.Parent?.Parent)?.AppearanceChanged(shellSection, false);
1030
void SendAppearanceChanged() => ((
IShellController
)Parent?.Parent)?.AppearanceChanged(this, false);
1194
(_owner.Shell as
IShellController
).UpdateCurrentState(ShellNavigationSource.Remove);
1223
(_owner.Shell as
IShellController
).UpdateCurrentState(ShellNavigationSource.Insert);
Shell\ShellUriHandler.cs (1)
949
case
IShellController
shell: