36 references to _navTree
Microsoft.Maui.Controls (36)
NavigationModel.cs (36)
18
if (
_navTree
.Count > 0)
19
return
_navTree
.Last().Last();
28
if (
_navTree
.Count == 0)
31
return
_navTree
.Last()[0];
47
foreach (List<Page> list in
_navTree
)
57
get { return
_navTree
; }
63
_navTree
.Clear();
70
List<Page> currentStack =
_navTree
.Last();
83
foreach (List<Page> stack in
_navTree
)
101
if (
_navTree
.Count <= 1)
105
Page modal =
_navTree
.Last()[0];
107
_navTree
.Remove(
_navTree
.Last());
112
if (
_navTree
.Count > 0 &&
113
_navTree
[0].Count > 0 &&
114
_navTree
[0][0] is not Shell)
128
if (
_navTree
.Count == 1)
130
if (
_navTree
[0].Count > 1)
132
itemToRemove =
_navTree
[0].Last();
133
_navTree
[0].Remove(itemToRemove);
138
itemToRemove =
_navTree
.Last().Last();
139
_navTree
.Last().Remove(itemToRemove);
140
if (
_navTree
.Last().Count == 0)
142
_navTree
.RemoveAt(
_navTree
.Count - 1);
151
foreach (List<Page> stack in
_navTree
)
170
if (
_navTree
.Count > 0)
172
_navTree
.Add(new List<Page> { page });
178
foreach (List<Page> stack in
_navTree
)
194
_navTree
.Add(new List<Page> { page });
200
if (
_navTree
.Count > 0 &&
201
_navTree
[0].Count > 0 &&
202
_navTree
[0][0] is not Shell)
214
List<Page> currentStack =
_navTree
.Last();
216
while (!(found = currentStack.Remove(page)) && i <
_navTree
.Count - 1)
218
currentStack =
_navTree
[i++];