51 references to ShellNavigationSource
Microsoft.Maui.Controls (51)
Shell\IShellController.cs (2)
47
bool ProposeNavigation(
ShellNavigationSource
source, ShellItem item, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel);
53
void UpdateCurrentState(
ShellNavigationSource
source);
Shell\Shell.cs (12)
906
bool IShellController.ProposeNavigation(
ShellNavigationSource
source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel)
928
void IShellController.UpdateCurrentState(
ShellNavigationSource
source)
1544
var args = new ShellNavigatingEventArgs(this.CurrentState, new ShellNavigationState(""),
ShellNavigationSource
.Pop, true);
1575
case
ShellNavigationSource
.Pop:
1578
case
ShellNavigationSource
.ShellItemChanged:
1581
case
ShellNavigationSource
.ShellSectionChanged:
1584
case
ShellNavigationSource
.ShellContentChanged:
1587
case
ShellNavigationSource
.Push:
1590
case
ShellNavigationSource
.PopToRoot:
1593
case
ShellNavigationSource
.Insert:
1664
shell.ShellController.UpdateCurrentState(
ShellNavigationSource
.ShellItemChanged);
1681
shell._navigationManager.ProposeNavigationOutsideGotoAsync(
ShellNavigationSource
.ShellItemChanged, shellItem, shellSection, shellContent, stack, false, true);
Shell\ShellItem.cs (2)
76
bool accept = controller.ProposeNavigation(
ShellNavigationSource
.ShellSectionChanged,
300
shell.UpdateCurrentState(
ShellNavigationSource
.ShellSectionChanged);
Shell\ShellNavigatedEventArgs.cs (2)
10
public ShellNavigatedEventArgs(ShellNavigationState previous, ShellNavigationState current,
ShellNavigationSource
source)
22
public
ShellNavigationSource
Source { get; }
Shell\ShellNavigatingEventArgs.cs (2)
18
public ShellNavigatingEventArgs(ShellNavigationState current, ShellNavigationState target,
ShellNavigationSource
source, bool canCancel)
36
public
ShellNavigationSource
Source { get; }
Shell\ShellNavigationManager.cs (19)
68
ShellNavigationSource
source = CalculateNavigationSource(_shell, _shell.CurrentState, navigationRequest);
342
ShellNavigationSource
source,
377
ShellNavigationSource
source,
407
public static
ShellNavigationSource
CalculateNavigationSource(Shell shell, ShellNavigationState current, ShellNavigationRequest request)
410
return
ShellNavigationSource
.Push;
413
return
ShellNavigationSource
.ShellItemChanged;
425
return
ShellNavigationSource
.Unknown;
428
return
ShellNavigationSource
.ShellItemChanged;
430
return
ShellNavigationSource
.ShellSectionChanged;
432
return
ShellNavigationSource
.ShellContentChanged;
435
return
ShellNavigationSource
.Unknown;
448
return
ShellNavigationSource
.PopToRoot;
450
return
ShellNavigationSource
.Pop;
455
return
ShellNavigationSource
.Remove;
458
return
ShellNavigationSource
.PopToRoot;
460
return
ShellNavigationSource
.Pop;
470
return
ShellNavigationSource
.Push;
475
return
ShellNavigationSource
.Insert;
477
return
ShellNavigationSource
.Push;
Shell\ShellSection.cs (12)
128
(Parent?.Parent as IShellController)?.UpdateCurrentState(
ShellNavigationSource
.Pop);
148
(Parent?.Parent as IShellController)?.UpdateCurrentState(
ShellNavigationSource
.PopToRoot);
749
ShellNavigationSource
.Insert,
779
ShellNavigationSource
.Pop,
818
ShellNavigationSource
.PopToRoot,
859
ShellNavigationSource
.Push,
929
ShellNavigationSource
.Remove,
1009
shell.UpdateCurrentState(
ShellNavigationSource
.ShellContentChanged);
1188
ShellNavigationSource
.Remove,
1194
(_owner.Shell as IShellController).UpdateCurrentState(
ShellNavigationSource
.Remove);
1217
ShellNavigationSource
.Insert,
1223
(_owner.Shell as IShellController).UpdateCurrentState(
ShellNavigationSource
.Insert);