Shell.GoToAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- ShellNavigationState
Returns
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
- state
- ShellNavigationState
- animate
- System.Boolean
Returns
Remarks
Note that ShellNavigationState has implicit conversions from string
and System.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");