1 write to CurrentItem
Microsoft.Maui.Controls (1)
Shell\ShellSection.cs (1)
283
current.
CurrentItem
= shellContent;
49 references to CurrentItem
Microsoft.Maui.Controls (49)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
662
var shellContent = shellSection?.
CurrentItem
;
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (5)
132
if (item != ShellSection.
CurrentItem
)
150
if (item == ShellSection.
CurrentItem
)
237
if (ShellSectionController.GetItems().IndexOf(ShellSection.
CurrentItem
) != SelectedIndex)
267
if (ShellSection.
CurrentItem
== null)
270
SelectedIndex = ShellSectionController.GetItems().IndexOf(ShellSection.
CurrentItem
);
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (7)
19
bool IShellSectionRootRenderer.ShowNavBar => Shell.GetNavBarIsVisible(((IShellContentController)ShellSection.
CurrentItem
).GetOrCreateContent());
82
if (ShellSection.
CurrentItem
== null)
116
if (ShellSection.
CurrentItem
!= null)
117
tracker.Page = ((IShellContentController)ShellSection.
CurrentItem
).GetOrCreateContent();
279
var currentItem = ShellSection.
CurrentItem
;
322
var newContent = ShellSection.
CurrentItem
;
413
var activeItem = ShellSection?.
CurrentItem
;
Platform\iOS\ControlsModalWrapper.cs (1)
79
shell.CurrentItem.CurrentItem.
CurrentItem
,
Shell\RequestDefinition.cs (1)
15
Content = theWinningRoute.Content ?? Section?.
CurrentItem
;
Shell\Shell.cs (7)
835
shellContent = shellContent ?? shellSection?.
CurrentItem
;
931
var shellContent = shellSection?.
CurrentItem
;
1310
internal ShellContent CurrentContent => CurrentItem?.CurrentItem?.
CurrentItem
;
1677
var shellContent = shellSection.
CurrentItem
;
1715
var currentItem = shellSection.
CurrentItem
;
1843
if (!foundShellContent && pivot is ShellSection shellSection && shellSection.
CurrentItem
!= null)
1845
if (result.Ingest(shellSection.
CurrentItem
))
Shell\ShellContent.cs (1)
125
internal bool IsVisibleContent => Parent is ShellSection shellSection && shellSection.IsVisibleSection && shellSection.
CurrentItem
== this;
Shell\ShellFlyoutItemsManager.cs (3)
129
if (shellContent == shellSection.
CurrentItem
)
154
if (shellContents.Count == 1 && shellSection == shellItem.CurrentItem && shellSection.
CurrentItem
.MenuItems.Count > 0)
156
AddMenuItems(shellSection.
CurrentItem
.MenuItems);
Shell\ShellItem.cs (1)
77
shellSection?.
CurrentItem
,
Shell\ShellNavigationManager.cs (3)
129
if (shellSection.
CurrentItem
!= shellContent)
222
var shellContent = _shell?.CurrentItem?.CurrentItem?.
CurrentItem
;
258
BaseShellItem baseShellItem = _shell.CurrentItem?.CurrentItem?.
CurrentItem
;
Shell\ShellSection.cs (16)
67
return ((IShellContentController)
CurrentItem
)?.Page;
203
/// <summary>Bindable property for <see cref="
CurrentItem
"/>.</summary>
205
BindableProperty.Create(nameof(
CurrentItem
), typeof(ShellContent), typeof(ShellSection), null, BindingMode.TwoWay,
646
IShellContentController currentItem =
CurrentItem
;
696
if (
CurrentItem
== null && ((IShellSectionController)this).GetItems().Contains(child))
699
if (
CurrentItem
!= null)
705
if (
CurrentItem
== child)
739
CurrentItem
,
769
CurrentItem
,
808
CurrentItem
,
849
CurrentItem
,
919
CurrentItem
,
948
CurrentItem
?.SendDisappearing();
958
CurrentItem
?.SendAppearing();
1084
_owner.
CurrentItem
,
1217
var shellContent = shellSection?.
CurrentItem
;
Shell\ShellUriHandler.cs (3)
62
shell.CurrentItem.CurrentItem.
CurrentItem
.Route,
66
restOfPath.Insert(0, shell.CurrentItem.CurrentItem.
CurrentItem
.Route);
728
(object)shell.CurrentItem?.CurrentItem?.
CurrentItem
??