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 |
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 |
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
- state
- ShellNavigationState
- 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
- state
- ShellNavigationState
- 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
- state
- ShellNavigationState
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
- 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");