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

Asynchronously navigates to state, optionally animating.

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, parameters As IDictionary(Of String, Object)) As Task

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

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

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);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

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

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Source:
Shell.cs
Source:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, parameters As IDictionary(Of String, Object)) As Task

Parameters

parameters
IDictionary<String,Object>

Returns

Applies to

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

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);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

Parameters

state
ShellNavigationState

Defines the path for Shell to navigate to.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parameters to use for this specific navigation operation.

Returns

Applies to

GoToAsync(ShellNavigationState)

Source:
Shell.cs
Source:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState) As Task

Parameters

Returns

Applies to

GoToAsync(ShellNavigationState, Boolean)

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);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean) As Task

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