Compartir a través de


Shell.GoToAsync Método

Definición

Sobrecargas

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

Navega de forma asincrónica a state, opcionalmente animando.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Este método navega a y ShellNavigationState devuelve un Task.

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

Este método navega a ShellNavigationState y devuelve un que Task se completará una vez que la animación de navegación.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Navega de forma asincrónica a state, opcionalmente animando.

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

Source:
Shell.cs
Source:
Shell.cs

Navega de forma asincrónica a state, opcionalmente animando.

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

Parámetros

animate
Boolean
parameters
IDictionary<String,Object>

Devoluciones

Comentarios

Tenga en cuenta que ShellNavigationState tiene conversiones implícitas de string y Uri, por lo que los desarrolladores pueden escribir código como el siguiente, sin crear instancias explícitas de ShellNavigationState:

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

Se aplica a

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs

Este método navega a y ShellNavigationState devuelve un 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

Parámetros

state
ShellNavigationState

Define la ruta de acceso de Shell a la que se va a navegar.

animate
Boolean

Indica si la transición está animada

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parámetros que se usarán para esta operación de navegación específica.

Devoluciones

Se aplica a

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

Parámetros

parameters
IDictionary<String,Object>

Devoluciones

Se aplica a

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs

Este método navega a ShellNavigationState y devuelve un que Task se completará una vez que la animación de navegación.

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

Parámetros

state
ShellNavigationState

Define la ruta de acceso de Shell a la que se va a navegar.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parámetros que se usarán para esta operación de navegación específica.

Devoluciones

Se aplica a

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

Parámetros

Devoluciones

Se aplica a

GoToAsync(ShellNavigationState, Boolean)

Source:
Shell.cs
Source:
Shell.cs

Navega de forma asincrónica a state, opcionalmente animando.

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

Parámetros

animate
Boolean

Devoluciones

Comentarios

Tenga en cuenta que ShellNavigationState tiene conversiones implícitas de string y Uri, por lo que los desarrolladores pueden escribir código como el siguiente, sin crear instancias explícitas de ShellNavigationState:

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

Se aplica a