Summary
We created a new .NET MAUI project in this chapter. We learned how to configure the .NET MAUI app using .NET Generic Host, and we can use a custom font (Font Awesome) after updating the configuration of the resources. We also learned about the .NET MAUI application lifecycle. We tested how to subscribe to lifecycle events by overriding the CreateWindow
method and by creating a derived class of the Window
class. To create the boilerplate code with the MVVM pattern and Shell support, we created a new .NET MAUI project template. Throughout the process, we demonstrated how to migrate Xamarin.Forms code to .NET MAUI.
In the next chapter, we will learn how to create a user interface using XAML. XAML can be used to build user interfaces for WPF, UWP, Xamarin.Forms, and .NET MAUI. We will create and improve the user interfaces of our password manager app using XAML.