Xamarin: Sliding Windows

Sliding Windows

Call it a sliding window, a drawer, a hamburger; it is the latest craze in navigation.  You click on the ubiquitous icon of three lines and the page slides over to reveal… Well whatever you want.  Often it reveals navigation choices.

So the question arises: how do you do this in Xamarin.Forms?  I have looked at a number of sources and samples and have synthesized them into an approach I like.

Start with a Xamarin.Forms Application

The technique I’m going to describe is designed to work with Xamarin.Forms. All of the work is done in the PCL.  Begin by creating a BaseContentPage which derives from ContentPage and adds a NavigationPageName.  This will let pages identify themselves,

Continued here.

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen online courses. His latest book, Building APIs with .NET will be released early in 2025. Liberty is a Senior SW Engineer for CNH and he was a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a Microsoft MVP.
This entry was posted in Xamarin and tagged , , , . Bookmark the permalink.