From the course: Creating .NET MAUI Applications with Blazor

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Combining .NET MAUI pages and Blazor pages: Part 1

Combining .NET MAUI pages and Blazor pages: Part 1 - .NET MAUI Tutorial

From the course: Creating .NET MAUI Applications with Blazor

Combining .NET MAUI pages and Blazor pages: Part 1

- [Instructor] One common scenario where we might want to use Blazor is when we have an existing MAUI app where we want to add some Blazor pages. That is the situation we have with the code for the start of this video. There's a normal mock MAUI login page with the shell and a Blazor container page where we want to insert our new Blazor page. To start, we need to change the project type. To do this, we're going to go in to the project file itself, right click, and go edit project file. And at the top it says what the project type is and it's currently Microsoft.NET.Sdk. And we're going to modify that and at the end of that, go dot and razor, just like that. We'll save the file and close it and this will change the project type. Next we want to initialize Blazor. So I'm going to open up the project and go to the MAUI program file. And we're going to go to the create MAUI app method and scroll down. And we're going to add…

Contents