Shell.GoToAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>) |
Asynchronously navigates to the specified state with animation control and optional parameters. |
| GoToAsync(ShellNavigationState, IDictionary<String,Object>) |
Asynchronously navigates to the specified state with optional parameters. |
| GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters) |
This method navigates to a ShellNavigationState and returns a Task. |
| GoToAsync(ShellNavigationState, ShellNavigationQueryParameters) |
This method navigates to a ShellNavigationState and returns a Task that will complete once the navigation animation. |
| GoToAsync(ShellNavigationState, Boolean) |
Asynchronously navigates to |
| GoToAsync(ShellNavigationState) |
GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)
- Source:
- Shell.cs
- Source:
- Shell.cs
- Source:
- Shell.cs
Asynchronously navigates to the specified state with animation control and optional parameters.
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
- state
- ShellNavigationState
The shell navigation state to navigate to.
- animate
- Boolean
Whether to animate the navigation transition.
- parameters
- IDictionary<String,Object>
Optional parameters to pass to the destination page.
Returns
A task that represents the asynchronous navigation operation.
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, IDictionary<String,Object>)
- Source:
- Shell.cs
- Source:
- Shell.cs
- Source:
- Shell.cs
Asynchronously navigates to the specified state with optional parameters.
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
- state
- ShellNavigationState
The shell navigation state to navigate to.
- parameters
- IDictionary<String,Object>
Optional parameters to pass to the destination page.
Returns
A task that represents the asynchronous navigation operation.
Applies to
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);
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, 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);
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, 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);
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
- state
- ShellNavigationState
- 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
GoToAsync(ShellNavigationState)
- Source:
- Shell.cs
- 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
- state
- ShellNavigationState