67 references to CurrentItem
Microsoft.Maui.Controls (67)
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (4)
54
ShellSection shellSection = Shell?.
CurrentItem
?.CurrentItem;
233
var currentItem = Shell.
CurrentItem
;
313
value.ShellItem != this.Shell.
CurrentItem
)
367
if (Shell.
CurrentItem
== null)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
660
var shellItem = _context.Shell.
CurrentItem
;
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
492
if (_shellContext?.Shell?.
CurrentItem
?.CurrentItem == ShellSection)
Platform\iOS\ControlsModalWrapper.cs (5)
72
var modalStack = new List<Page>(shell.
CurrentItem
.CurrentItem.Navigation.ModalStack);
77
shell.
CurrentItem
,
78
shell.
CurrentItem
.CurrentItem,
79
shell.
CurrentItem
.CurrentItem.CurrentItem,
80
shell.
CurrentItem
.CurrentItem.Stack, modalStack);
Platform\ModalNavigationManager\ModalNavigationManager.cs (2)
226
if (!shell.
CurrentItem
.CurrentItem.IsPoppingModalStack)
275
if (!shell.
CurrentItem
.CurrentItem.IsPushingModalStack)
Platform\PageExtensions.cs (1)
15
else if (currentPage is Shell shell && shell.
CurrentItem
?.CurrentItem is IShellSectionController ssc)
Shell\Shell.cs (22)
846
if (this.
CurrentItem
== null)
929
var shellItem =
CurrentItem
;
1060
BindableProperty.Create(nameof(
CurrentItem
), typeof(ShellItem), typeof(Shell), null, BindingMode.TwoWay,
1202
if (
CurrentItem
!= null)
1218
if (
CurrentItem
!= null && shellItems.Contains(
CurrentItem
))
1225
if (
CurrentItem
!= null)
1310
internal ShellContent CurrentContent =>
CurrentItem
?.CurrentItem?.CurrentItem;
1311
internal ShellSection CurrentSection =>
CurrentItem
?.CurrentItem;
1535
var currentContent =
CurrentItem
?.CurrentItem;
1603
CurrentItem
?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName);
1613
CurrentItem
?.Handler?.UpdateValue(Shell.TabBarIsVisibleProperty.PropertyName);
1664
if (shell.
CurrentItem
?.CurrentItem != null)
1665
shell.ShellController.AppearanceChanged(shell.
CurrentItem
.CurrentItem, false);
1693
ShellItem currentItem = shell.
CurrentItem
;
1865
if (
CurrentItem
== null || GetVisiblePage() == null)
1919
if (
CurrentItem
?.CurrentItem is IShellSectionController scc)
1954
element = shell.
CurrentItem
;
2080
NavigationProxy SectionProxy => _shell.
CurrentItem
?.CurrentItem?.NavigationProxy;
2107
if (ModalStack.Count == 0 && !_shell.
CurrentItem
.CurrentItem.IsPoppingModalStack)
2108
_shell.
CurrentItem
.SendAppearing();
2130
_shell.
CurrentItem
.SendDisappearing();
Shell\ShellContent.cs (1)
242
shell.
CurrentItem
!= shellItem || // user has navigated to a different TabBar or a different FlyoutItem
Shell\ShellItem.cs (2)
191
internal bool IsVisibleItem => Parent is Shell shell && shell?.
CurrentItem
== this;
328
if (CurrentItem != null && Parent is Shell shell && shell.
CurrentItem
== this)
Shell\ShellNavigationManager.cs (15)
52
if (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask != null)
53
await (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask);
100
var currentShellSection = _shell.
CurrentItem
?.CurrentItem;
146
if (_shell.
CurrentItem
!= shellItem)
154
if (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask != null)
155
await (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask);
180
return _shell.
CurrentItem
.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping);
190
return _shell.
CurrentItem
.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping);
196
await _shell.
CurrentItem
.CurrentItem.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, animate, isRelativePopping);
201
if (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask != null)
202
await (_shell?.
CurrentItem
?.CurrentItem?.PendingNavigationTask ?? Task.CompletedTask);
222
var shellContent = _shell?.
CurrentItem
?.CurrentItem?.CurrentItem;
242
_shell.
CurrentItem
?.SendAppearing();
258
BaseShellItem baseShellItem = _shell.
CurrentItem
?.CurrentItem?.CurrentItem;
577
var section = shell.
CurrentItem
.CurrentItem;
Shell\ShellSection.cs (3)
943
internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.
CurrentItem
?.CurrentItem == this;
1082
shell.
CurrentItem
,
1215
var shellItem = _owner.Shell.
CurrentItem
;
Shell\ShellUriHandler.cs (10)
60
shell.
CurrentItem
.Route,
61
shell.
CurrentItem
.CurrentItem.Route,
62
shell.
CurrentItem
.CurrentItem.CurrentItem.Route,
66
restOfPath.Insert(0, shell.
CurrentItem
.CurrentItem.CurrentItem.Route);
67
restOfPath.Insert(0, shell.
CurrentItem
.CurrentItem.Route);
68
restOfPath.Insert(0, shell.
CurrentItem
.Route);
260
if (relativeMatch && shell?.
CurrentItem
!= null)
728
(object)shell.
CurrentItem
?.CurrentItem?.CurrentItem ??
729
(object)shell.
CurrentItem
?.CurrentItem ??
730
(object)shell.
CurrentItem
??