FunctionZero.Maui.MvvmZero 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package FunctionZero.Maui.MvvmZero --version 1.0.2
NuGet\Install-Package FunctionZero.Maui.MvvmZero -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FunctionZero.Maui.MvvmZero" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FunctionZero.Maui.MvvmZero --version 1.0.2
#r "nuget: FunctionZero.Maui.MvvmZero, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FunctionZero.Maui.MvvmZero as a Cake Addin
#addin nuget:?package=FunctionZero.Maui.MvvmZero&version=1.0.2

// Install FunctionZero.Maui.MvvmZero as a Cake Tool
#tool nuget:?package=FunctionZero.Maui.MvvmZero&version=1.0.2

FunctionZero.Maui.MvvmZero

NuGet package here

MvvmZero for MAUI.

If you have used MvvmZero for Xamarin, you'll probably be able to work out how to use this by looking at the SampleApp.

Features:

Ths is an exceptionally lightweight library based on ViewModel driven navigation.

Setup and present any Page with any associated ViewModel ...

pageService.PushPageAsync<ResultsPage, ResultsPageVm>((vm) => vm.Init("vm.Init (or any method) is called on your ResultsPageVm before the push" );

Connect the pageService to your IoC container to delegate object creation.

Implement IHasOwnerPage or derive from MvvmZeroBasePageVm to expose lifecycle events and other goodies to your ViewModels automatically.

Other goodies:

  • PageTimer
  • LatchDelayMachine
  • and more...

QuickStart:

Look at MauiProgram.cs for registrations.
Look at App.xaml.cs to get things off the ground. The rest is basically the same as found in the Xamarin Turorial

Is anybody out there?

The more stars I get, the sooner I'm likely to write up some proper documentation, and even a sample app tutorial. 😉
Whilst you're here, take a look at Maui.zBind and tell all your friends. It's already included in FunctionZero.Maui.MvvmZero.

If you target WinUI, you'll want to make your pages Transient until this MAUI bug is fixed.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows10.0.19041 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.3 107 3/31/2024
8.0.2 79 3/31/2024
8.0.1 183 1/7/2024
8.0.0 167 10/21/2023
8.0.0-pre1 64 10/14/2023
2.0.4.2-pre1 115 8/26/2023
2.0.4.1 169 8/20/2023
2.0.4 132 8/19/2023
2.0.3 205 7/8/2023
2.0.2 133 6/27/2023
2.0.1 129 6/26/2023
2.0.0 154 4/23/2023
2.0.0-pre1 107 4/22/2023
1.1.2 210 3/29/2023
1.1.1 209 3/21/2023
1.1.0 212 3/18/2023
1.0.2 202 3/16/2023
1.0.1 196 3/15/2023
1.0.0 218 3/15/2023

Initial release! You have been warned! :)