1 write to CurrentItem
Microsoft.Maui.Controls (1)
Shell\ShellItem.cs (1)
211
current.
CurrentItem
= shellSection;
62 references to CurrentItem
Microsoft.Maui.Controls (62)
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (5)
185
GoTo(ShellItem.
CurrentItem
);
216
var current = ShellItem.
CurrentItem
;
239
GoTo(ShellItem.
CurrentItem
);
284
if (ShellItem.
CurrentItem
== null)
310
GoTo(ShellItem.
CurrentItem
);
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
54
ShellSection shellSection = Shell?.CurrentItem?.
CurrentItem
;
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
661
var shellSection = shellItem?.
CurrentItem
;
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (1)
492
if (_shellContext?.Shell?.CurrentItem?.
CurrentItem
== ShellSection)
Platform\iOS\ControlsModalWrapper.cs (4)
72
var modalStack = new List<Page>(shell.CurrentItem.
CurrentItem
.Navigation.ModalStack);
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\RequestDefinition.cs (1)
14
Section = theWinningRoute.Section ?? Item?.
CurrentItem
;
Shell\Shell.cs (13)
834
shellSection = shellSection ?? shellItem.
CurrentItem
;
930
var shellSection = shellItem?.
CurrentItem
;
1310
internal ShellContent CurrentContent => CurrentItem?.
CurrentItem
?.CurrentItem;
1311
internal ShellSection CurrentSection => CurrentItem?.
CurrentItem
;
1535
var currentContent = CurrentItem?.
CurrentItem
;
1664
if (shell.CurrentItem?.
CurrentItem
!= null)
1665
shell.ShellController.AppearanceChanged(shell.CurrentItem.
CurrentItem
, false);
1676
var shellSection = shellItem.
CurrentItem
;
1704
var currentItem = shellItem.
CurrentItem
;
1919
if (CurrentItem?.
CurrentItem
is IShellSectionController scc)
1957
element = shellItem.
CurrentItem
;
2080
NavigationProxy SectionProxy => _shell.CurrentItem?.
CurrentItem
?.NavigationProxy;
2107
if (ModalStack.Count == 0 && !_shell.CurrentItem.
CurrentItem
.IsPoppingModalStack)
Shell\ShellFlyoutItemsManager.cs (1)
154
if (shellContents.Count == 1 && shellSection == shellItem.
CurrentItem
&& shellSection.CurrentItem.MenuItems.Count > 0)
Shell\ShellItem.cs (9)
140
/// <summary>Bindable property for <see cref="
CurrentItem
"/>.</summary>
142
BindableProperty.Create(nameof(
CurrentItem
), typeof(ShellSection), typeof(ShellItem), null, BindingMode.TwoWay,
265
if (
CurrentItem
== null && ((IShellItemController)this).GetItems().Contains(child))
271
if (
CurrentItem
== child)
328
if (
CurrentItem
!= null && Parent is Shell shell && shell.CurrentItem == this)
330
CurrentItem
.SendAppearing();
337
CurrentItem
?.SendDisappearing();
343
if (this.IsVisibleItem &&
CurrentItem
!= null)
344
((IShellController)Parent)?.AppearanceChanged(
CurrentItem
, false);
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
;
101
var nextActiveSection = shellSection ?? shellItem?.
CurrentItem
;
139
if (shellItem.
CurrentItem
!= shellSection)
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;
258
BaseShellItem baseShellItem = _shell.CurrentItem?.
CurrentItem
?.CurrentItem;
577
var section = shell.CurrentItem.
CurrentItem
;
Shell\ShellSection.cs (2)
943
internal bool IsVisibleSection => Parent?.Parent is Shell shell && shell.CurrentItem?.
CurrentItem
== this;
1216
var shellSection = shellItem?.
CurrentItem
;
Shell\ShellUriHandler.cs (6)
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);
728
(object)shell.CurrentItem?.
CurrentItem
?.CurrentItem ??
729
(object)shell.CurrentItem?.
CurrentItem
??