53 references to ShellNavigationSource
Microsoft.Maui.Controls (53)
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (1)
667
return ((IShellController)_context.Shell).ProposeNavigation(
ShellNavigationSource
.Pop, shellItem, shellSection, shellContent, stack, true);
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (1)
152
return shellController.ProposeNavigation(
ShellNavigationSource
.ShellContentChanged, (ShellItem)ShellSection.Parent, ShellSection, item, ShellSection.Stack, true);
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)
904
bool IShellController.ProposeNavigation(
ShellNavigationSource
source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel)
926
void IShellController.UpdateCurrentState(
ShellNavigationSource
source)
1542
var args = new ShellNavigatingEventArgs(this.CurrentState, new ShellNavigationState(""),
ShellNavigationSource
.Pop, true);
1573
case
ShellNavigationSource
.Pop:
1576
case
ShellNavigationSource
.ShellItemChanged:
1579
case
ShellNavigationSource
.ShellSectionChanged:
1582
case
ShellNavigationSource
.ShellContentChanged:
1585
case
ShellNavigationSource
.Push:
1588
case
ShellNavigationSource
.PopToRoot:
1591
case
ShellNavigationSource
.Insert:
1662
shell.ShellController.UpdateCurrentState(
ShellNavigationSource
.ShellItemChanged);
1679
shell._navigationManager.ProposeNavigationOutsideGotoAsync(
ShellNavigationSource
.ShellItemChanged, shellItem, shellSection, shellContent, stack, false, true);
Shell\ShellItem.cs (2)
74
bool accept = controller.ProposeNavigation(
ShellNavigationSource
.ShellSectionChanged,
298
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)
126
(Parent?.Parent as IShellController)?.UpdateCurrentState(
ShellNavigationSource
.Pop);
146
(Parent?.Parent as IShellController)?.UpdateCurrentState(
ShellNavigationSource
.PopToRoot);
736
ShellNavigationSource
.Insert,
766
ShellNavigationSource
.Pop,
805
ShellNavigationSource
.PopToRoot,
846
ShellNavigationSource
.Push,
916
ShellNavigationSource
.Remove,
996
shell.UpdateCurrentState(
ShellNavigationSource
.ShellContentChanged);
1175
ShellNavigationSource
.Remove,
1181
(_owner.Shell as IShellController).UpdateCurrentState(
ShellNavigationSource
.Remove);
1204
ShellNavigationSource
.Insert,
1210
(_owner.Shell as IShellController).UpdateCurrentState(
ShellNavigationSource
.Insert);