Shell.GoToAsync Method

Definition

Overloads

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Asynchronously navigates to , optionally animating.

GoToAsync(ShellNavigationState)

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

Parameters

Returns

Task

Applies to

GoToAsync(ShellNavigationState, Boolean)

Asynchronously navigates to , optionally animating.

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

Parameters

animate
Boolean

Returns

Task

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