All-Modal Navigation with Xamarinn.Forms.Shell

EasyGoingPat 261 Reputation points

I want to use Xamarin.Forms.Shell, mainly to take advantage of the new navigation events, which my application logic requires.

I also want a multi-step gradient to occupy the entire background of the screen. I had achieved this using the old navigation system with the XFGloss nuget package. The problem when using Shell is that is creates a separate section of the screen at the top and bottom and the ContentPage is displayed between these areas. Therefore, I can't see an easy way to get a background gradient to run from the top of the screen smoothly to the bottom.

One workaround that would also suit my application logic is for every single screen to be modal. These screens don't have the separate Shell sections displayed at the top and bottom so there is no problem.

Is there a way to construct an all-modal navigation using Shell?

Note that I use C# and Xamarin.CommunityToolkit.Markup for the UI so would ideally like an example that shows how to do this.

Any help would be very much appreciated.

Kind wishes - Patrick

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
{count} votes