Udostępnij za pośrednictwem


Shell.GoToAsync Metoda

Definicja

Przeciążenia

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

Asynchronicznie przechodzi do statemetody , opcjonalnie animując.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Ta metoda przechodzi do metody ShellNavigationState i zwraca wartość Task.

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

Ta metoda przechodzi do elementu ShellNavigationState i zwraca Task element, który zostanie ukończony po animacji nawigacji.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Asynchronicznie przechodzi do statemetody , opcjonalnie animując.

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

Źródło:
Shell.cs
Źródło:
Shell.cs

Asynchronicznie przechodzi do statemetody , opcjonalnie animując.

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

Parametry

animate
Boolean
parameters
IDictionary<String,Object>

Zwraca

Uwagi

Należy pamiętać, że ShellNavigationState ma niejawne konwersje z string i Uri, więc deweloperzy mogą pisać kod, taki jak poniżej, bez jawnego wystąpienia elementu ShellNavigationState:

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

Dotyczy

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Źródło:
Shell.cs
Źródło:
Shell.cs

Ta metoda przechodzi do metody ShellNavigationState i zwraca wartość 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

Parametry

state
ShellNavigationState

Definiuje ścieżkę dla powłoki, do których ma przejść.

animate
Boolean

Wskazuje, czy przejście jest animowane

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametry do użycia dla tej konkretnej operacji nawigacji.

Zwraca

Dotyczy

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Źródło:
Shell.cs
Źródło:
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

Parametry

parameters
IDictionary<String,Object>

Zwraca

Dotyczy

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Źródło:
Shell.cs
Źródło:
Shell.cs

Ta metoda przechodzi do elementu ShellNavigationState i zwraca Task element, który zostanie ukończony po animacji nawigacji.

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

Parametry

state
ShellNavigationState

Definiuje ścieżkę dla powłoki, do których ma przejść.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametry do użycia dla tej konkretnej operacji nawigacji.

Zwraca

Dotyczy

GoToAsync(ShellNavigationState)

Źródło:
Shell.cs
Źródło:
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

Parametry

Zwraca

Dotyczy

GoToAsync(ShellNavigationState, Boolean)

Źródło:
Shell.cs
Źródło:
Shell.cs

Asynchronicznie przechodzi do statemetody , opcjonalnie animując.

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

Parametry

animate
Boolean

Zwraca

Uwagi

Należy pamiętać, że ShellNavigationState ma niejawne konwersje z string i Uri, więc deweloperzy mogą pisać kod, taki jak poniżej, bez jawnego wystąpienia elementu ShellNavigationState:

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

Dotyczy