Shell.GoToAsync Metoda

Definice

Přetížení

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Asynchronně přejde na , případně animuje.

GoToAsync(ShellNavigationState)

public System.Threading.Tasks.Task GoToAsync (Xamarin.Forms.ShellNavigationState state);
member this.GoToAsync : Xamarin.Forms.ShellNavigationState -> System.Threading.Tasks.Task

Parametry

Návraty

Platí pro

GoToAsync(ShellNavigationState, Boolean)

Asynchronně přejde na , případně animuje.

public System.Threading.Tasks.Task GoToAsync (Xamarin.Forms.ShellNavigationState state, bool animate);
member this.GoToAsync : Xamarin.Forms.ShellNavigationState * bool -> System.Threading.Tasks.Task

Parametry

animate
Boolean

Návraty

Poznámky

Všimněte si, že ShellNavigationState má implicitní převody z string a Uri, takže vývojáři mohou psát kód, jako je následující, bez explicitní instance ShellNavigationState:

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

Platí pro