FunctionZero.Maui.MvvmZero 1.0.0

Additional Details

This package had namespace issues that upset Maui builds.

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.0                
NuGet\Install-Package FunctionZero.Maui.MvvmZero -Version 1.0.0                
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.0" />                
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.0                
#r "nuget: FunctionZero.Maui.MvvmZero, 1.0.0"                
#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.0

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

Maui.MvvmZero

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 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 153 3/31/2024
8.0.2 101 3/31/2024
8.0.1 244 1/7/2024
8.0.0 181 10/21/2023
8.0.0-pre1 76 10/14/2023
2.0.4.2-pre1 149 8/26/2023
2.0.4.1 196 8/20/2023
2.0.4 149 8/19/2023
2.0.3 237 7/8/2023
2.0.2 153 6/27/2023
2.0.1 148 6/26/2023
2.0.0 174 4/23/2023
2.0.0-pre1 131 4/22/2023
1.1.2 237 3/29/2023
1.1.1 225 3/21/2023
1.1.0 239 3/18/2023
1.0.2 222 3/16/2023
1.0.1 214 3/15/2023
1.0.0 237 3/15/2023 1.0.0 is deprecated.

Initial release! You have been warned! :)