juniorXamarin
What are ContentPage and NavigationPage in Xamarin.Forms?
Updated May 6, 2026
Short answer
ContentPage represents a single screen, while NavigationPage provides hierarchical navigation between pages.
Deep explanation
ContentPage is the base UI container in Xamarin.Forms used to define a single screen. NavigationPage wraps ContentPages and enables stack-based navigation (push and pop). This allows moving between pages while maintaining navigation history. It is essential for multi-screen mobile applications.
Real-world example
An app opens a product list (ContentPage), and when a product is clicked, it navigates to a product details page using NavigationPage.
Common mistakes
- Forgetting to wrap pages in NavigationPage
- using absolute navigation incorrectly
- ignoring navigation stack behavior.
Follow-up questions
- What is modal navigation in Xamarin?
- Can NavigationPage be customized?