Share via


Shell.GoToAsync Method

Definition

Overloads

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

Asynchronously navigates to state, optionally animating.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

This method navigates to a ShellNavigationState and returns a Task.

GoToAsync(ShellNavigationState, IDictionary<String,Object>)
GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

This method navigates to a ShellNavigationState and returns a Task that will complete once the navigation animation.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Asynchronously navigates to state, optionally animating.

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

Asynchronously navigates to state, optionally animating.

public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state, bool animate, System.Collections.Generic.IDictionary<string,object> parameters);

Parameters

animate
Boolean
parameters
IDictionary<String,Object>

Returns

Remarks

Note that ShellNavigationState has implicit conversions from string and Uri, so developers may write code such as the following, with no explicit instantiation of the ShellNavigationState:

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

Applies to

Product Versions

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

This method navigates to a ShellNavigationState and returns a Task.

public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state, bool animate, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);

Parameters

state
ShellNavigationState

Defines the path for Shell to navigate to.

animate
Boolean

Indicates if your transition is animated

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parameters to use for this specific navigation operation.

Returns

Applies to

Product Versions

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs
public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state, System.Collections.Generic.IDictionary<string,object> parameters);

Parameters

parameters
IDictionary<String,Object>

Returns

Applies to

Product Versions

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

This method navigates to a ShellNavigationState and returns a Task that will complete once the navigation animation.

public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);

Parameters

state
ShellNavigationState

Defines the path for Shell to navigate to.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parameters to use for this specific navigation operation.

Returns

Applies to

Product Versions

GoToAsync(ShellNavigationState)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs
public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state);

Parameters

Returns

Applies to

Product Versions

GoToAsync(ShellNavigationState, Boolean)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

Asynchronously navigates to state, optionally animating.

public System.Threading.Tasks.Task GoToAsync(Microsoft.Maui.Controls.ShellNavigationState state, bool animate);

Parameters

animate
Boolean

Returns

Remarks

Note that ShellNavigationState has implicit conversions from string and Uri, so developers may write code such as the following, with no explicit instantiation of the ShellNavigationState:

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

Applies to

Product Versions