Condividi tramite


Shell.GoToAsync Metodo

Definizione

Overload

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

Passa in modo asincrono a state, facoltativamente animando.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Questo metodo passa a e ShellNavigationState restituisce un oggetto Task.

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

Questo metodo passa a e ShellNavigationState restituisce un oggetto Task che verrà completato dopo l'animazione di spostamento.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Passa in modo asincrono a state, facoltativamente animando.

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

Origine:
Shell.cs
Origine:
Shell.cs

Passa in modo asincrono a state, facoltativamente 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

Parametri

animate
Boolean
parameters
IDictionary<String,Object>

Restituisce

Commenti

Si noti che ShellNavigationState include conversioni implicite da string e Uri, in modo che gli sviluppatori possano scrivere codice come il seguente, senza creare istanze esplicite di ShellNavigationState:

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

Si applica a

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Origine:
Shell.cs
Origine:
Shell.cs

Questo metodo passa a e ShellNavigationState restituisce un oggetto 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

Parametri

state
ShellNavigationState

Definisce il percorso di Shell a cui passare.

animate
Boolean

Indica se la transizione è animata

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametri da usare per questa operazione di navigazione specifica.

Restituisce

Si applica a

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Origine:
Shell.cs
Origine:
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

Parametri

parameters
IDictionary<String,Object>

Restituisce

Si applica a

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Origine:
Shell.cs
Origine:
Shell.cs

Questo metodo passa a e ShellNavigationState restituisce un oggetto Task che verrà completato dopo l'animazione di spostamento.

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

Parametri

state
ShellNavigationState

Definisce il percorso di Shell a cui passare.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametri da usare per questa operazione di navigazione specifica.

Restituisce

Si applica a

GoToAsync(ShellNavigationState)

Origine:
Shell.cs
Origine:
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

Parametri

Restituisce

Si applica a

GoToAsync(ShellNavigationState, Boolean)

Origine:
Shell.cs
Origine:
Shell.cs

Passa in modo asincrono a state, facoltativamente 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

Parametri

animate
Boolean

Restituisce

Commenti

Si noti che ShellNavigationState include conversioni implicite da string e Uri, in modo che gli sviluppatori possano scrivere codice come il seguente, senza creare istanze esplicite di ShellNavigationState:

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

Si applica a