7 instantiations of ShellNavigationState
Microsoft.Maui.Controls (7)
Shell\Shell.cs (1)
1542
var args = new ShellNavigatingEventArgs(this.CurrentState, new
ShellNavigationState
(""), ShellNavigationSource.Pop, true);
Shell\ShellNavigationManager.cs (2)
58
var state = shellNavigationParameters.TargetState ?? new
ShellNavigationState
(Routing.GetRoute(shellNavigationParameters.PagePushing), false);
572
return new
ShellNavigationState
(String.Join("/", routeStack), true);
Shell\ShellNavigationState.cs (2)
62
public static implicit operator ShellNavigationState(Uri uri) => new
ShellNavigationState
(uri);
63
public static implicit operator ShellNavigationState(string value) => new
ShellNavigationState
(value);
Shell\ShellSection.cs (1)
1059
TargetState = new
ShellNavigationState
("..")
Shell\ShellUriHandler.cs (1)
291
new
ShellNavigationState
(url, false).FullLocation,
44 references to ShellNavigationState
Microsoft.Maui.Controls (44)
Shell\IShellController.cs (1)
41
ShellNavigationState
GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack = true);
Shell\Shell.cs (19)
47
/// Defines the navigation animation that occurs when a page is navigated to with the <see cref="GoToAsync(
ShellNavigationState
, bool)"/> method.
202
/// Gets the navigation animation that occurs when a page is navigated to with the <see cref = "GoToAsync(
ShellNavigationState
, bool)" /> method.
209
/// Sets the navigation animation that plays when a <see cref="Page"/> is navigated to with the <see cref = "GoToAsync(
ShellNavigationState
, bool)" /> method.
625
BindableProperty.CreateReadOnly(nameof(CurrentState), typeof(
ShellNavigationState
), typeof(Shell), null);
791
ShellNavigationState
IShellController.GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, bool includeStack)
848
var
state = ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, shellSection.Navigation.NavigationStack, null);
928
var
oldState = CurrentState;
934
var
result = ShellNavigationManager.GetNavigationState(shellItem, shellSection, shellContent, stack, modalStack);
1006
public Task GoToAsync(
ShellNavigationState
state)
1012
public Task GoToAsync(
ShellNavigationState
state, bool animate)
1019
public Task GoToAsync(
ShellNavigationState
state, IDictionary<string, object> parameters)
1027
public Task GoToAsync(
ShellNavigationState
state, bool animate, IDictionary<string, object> parameters)
1034
/// This method navigates to a <see cref="
ShellNavigationState
" /> and returns a <see cref="Task" /> that will complete once the navigation animation.
1039
public Task GoToAsync(
ShellNavigationState
state, ShellNavigationQueryParameters shellNavigationQueryParameters)
1045
/// This method navigates to a <see cref="
ShellNavigationState
" /> and returns a <see cref="Task" />.
1051
public Task GoToAsync(
ShellNavigationState
state, bool animate, ShellNavigationQueryParameters shellNavigationQueryParameters)
1230
var navRequest = ShellUriHandler.GetNavigationRequest(this, ((
ShellNavigationState
)location).FullLocation, false, false);
1314
public
ShellNavigationState
CurrentState => (
ShellNavigationState
)GetValue(CurrentStateProperty);
Shell\ShellNavigatedEventArgs.cs (4)
10
public ShellNavigatedEventArgs(
ShellNavigationState
previous,
ShellNavigationState
current, ShellNavigationSource source)
18
public
ShellNavigationState
Current { get; }
20
public
ShellNavigationState
Previous { get; }
Shell\ShellNavigatingEventArgs.cs (4)
18
public ShellNavigatingEventArgs(
ShellNavigationState
current,
ShellNavigationState
target, ShellNavigationSource source, bool canCancel)
30
public
ShellNavigationState
Current { get; }
33
public
ShellNavigationState
Target { get; }
Shell\ShellNavigationManager.cs (7)
26
ShellNavigationState
state,
58
var
state = shellNavigationParameters.TargetState ?? new ShellNavigationState(Routing.GetRoute(shellNavigationParameters.PagePushing), false);
353
var
proposedState = GetNavigationState(shellItem, shellSection, shellContent, stack, shellSection.Navigation.ModalStack);
378
ShellNavigationState
proposedState,
407
public static ShellNavigationSource CalculateNavigationSource(Shell shell,
ShellNavigationState
current, ShellNavigationRequest request)
487
var
state = GetNavigationState(shellItem, shellSection, shellContent, sectionStack, modalStack);
517
public static
ShellNavigationState
GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> sectionStack, IReadOnlyList<Page> modalStack)
Shell\ShellNavigationParameters.cs (1)
13
public
ShellNavigationState
TargetState { get; set; }
Shell\ShellNavigationState.cs (4)
62
public static implicit operator
ShellNavigationState
(Uri uri) => new ShellNavigationState(uri);
63
public static implicit operator
ShellNavigationState
(string value) => new ShellNavigationState(value);
115
string str => (
ShellNavigationState
)str,
116
Uri uri => (
ShellNavigationState
)uri,
Shell\ShellSection.cs (4)
1080
var
targetState =
1169
var
navigationState = GetUpdatedStatus(stack);
1198
var
navigationState = GetUpdatedStatus(stack);
1213
ShellNavigationState
GetUpdatedStatus(IReadOnlyList<Page> stack)