Google News
logo
Xamarin - Interview Questions
What is Hierarchical Navigation in Xamarin.Forms?
The Navigation Page in Xamarin.Forms provide a Hierarchical Navigation to the user. The Navigation is implemented via a stack on the principle of Last In First Out or LIFO. When a user opens the app a default page sits at the top of the stack of the Navigation system. As the user navigates to a new page, the new page gets pushed onto the Navigation stack and becomes the active page.

In Hierarchical Navigation, NavigationPage Class is used to Navigate through a stack of ContentPage Objects. The Navigation Page is the root Page and content Pages are the child Pages on top of it.

The layout of the NavigationPage is platform-dependent i.e. depending on the platform on which it is displayed it has a different appearance :

* On iOS, it displays a title and has a back button to enable navigation to the previous page
* On Android, A Navigation Br is present at the top. It has a title, an icon, and an Up button that allows the previous page to be accessed
* On Universal Windows Platform, a navigation bar is displayed at the top that displays a title.
Advertisement