Building a Calculator Using .NET MAUI Blazor
In this chapter, we will explore a .NET Blazor app embedded within a .NET MAUI app. We will write part of the calculator app using Blazor and host that in .NET MAUI using BlazorWebView
. We will also communicate between Blazor and .NET MAUI.
In this chapter, we are going to cover the following topics:
- What is Blazor?
- Exploring the differences between .NET MAUI projects and .NET MAUI Blazor projects
- Using HTML and CSS to define a UI
- Using XAML controls with HTML in a WebView
- Writing C# code that will integrate with XAML controls and HTML controls
- Working with the main .NET MAUI window to resize it to its contents