Understanding the Xamarin.Forms Navigation API
In this section, we will take a look at the Xamarin.Forms
Navigation API architectural pattern, as well as gain an understanding of the different types of navigation patterns that are available for us. The Xamarin.Forms
Navigation API is exposed through the Xamarin.Forms.INavigation
interface, and is implemented by using the Navigation
property. This can be called from any Xamarin.Forms
object, typically from the Xamarin.Forms.Page
, which inherits from the ContentPage
class that is part of the Xamarin.Forms.Core
assembly namespace.
The Xamarin.Forms
Navigation API supports two different types of navigation: Hierarchical and Modal. The following table provides a brief description of what each area is used for:
Type | Description |
Hierarchical | The Hierarchical navigation type is basically a stack-based navigation pattern that enables users to move iteratively through each of the Views within the hierarchy, and then navigate back out again, one screen... |