11
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
Technical requirements
You will need to have Visual Studio for Mac or PC installed, ...
Get .NET MAUI Projects - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.