Create your application
Last updated
Last updated
Open Visual Studio, or your preferred IDE, and create a new .NET MAUI application. Give it a cool name, or a terrible one if you prefer.
Build and run, just for peace of mind.
Now we're going to remove the Shell
navigation and use MvvmZero
Use the Package Manager (right-click on your project in the Solution Explorer) and add the latest FunctionZero.Maui.MvvmZero
. Make sure you don't select the Xamarin Forms Version!
Remove AppShell.xaml
and AppShell.xaml.cs
, as well as MainPage.xaml
and MainPage.xaml.cs
In App.xaml.cs
, replace your constructor with this:
Build and run. You should see a page with the corresponding Label.
We're now going to prepare some Pages and ViewModels