Building a responsive UI with MAUI
In this section, we will build a simple responsive UI using MAUI. Until MAUI is included with Visual Studio 2022, you will need to ensure you use Visual Studio 2022 Preview:
- Start a new .NET MAUI app and call it
CH12_ResponsiveMAUI
. - Add a new folder called
Api
. - In the
Api
folder, add a class calledPropertyChangedNotifier
and replace its contents with the following code:namespace CH12_ResponsiveMAUI.Api { using System.ComponentModel; using System.Runtime.CompilerServices; public class PropertyChangeNotifier : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged...