.NET MAUI with multiple Blazor webviews

Federico RUSCONI 1 Reputation point
2022-09-14T01:04:10.82+00:00

I'm trying to build an app with .NET MAUI with multiple blazor webviews. The idea is to use the XAML Shell to have tabs, and then in each tab have a XAML page with a Blazor webview component.
I am able to add multiple webviews and to point to different Razor layout files. The problem is that when I click a tab, the blazor router navigates to the "/" route always, so the same page is displayed regardless of the tab being clicked.

I did find sources saying it is possible to have multiple blazor web views, but could not find any code example.

Developer technologies .NET Blazor
Developer technologies .NET .NET MAUI
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.