Create your ContentPages

Weire going to create 4 Pages and 4 ViewModels. Start by creating a suitable folder structure. This is the recommended layout, but if you have a different preference that's good too.

Recommended folder layout

In the Mvvm/Pages folder, right-click and add a .NET MAUI ContentPage (XAML)

Adding a ContentPage

In ReadyPage.xaml replace the Label Text with "Welcome to ReadyPage!"

Repeat the process for SteadyPage.xaml, GoPage.xaml and DetailPage.xaml

Your Mvvm folder ought to look like this:

4 ContentPages added to the project

Next we're going to create our ViewModels

Last updated