FunctionZero.Maui.MvvmZero
1.1.1
See the version list below for details.
dotnet add package FunctionZero.Maui.MvvmZero --version 1.1.1
NuGet\Install-Package FunctionZero.Maui.MvvmZero -Version 1.1.1
<PackageReference Include="FunctionZero.Maui.MvvmZero" Version="1.1.1" />
paket add FunctionZero.Maui.MvvmZero --version 1.1.1
#r "nuget: FunctionZero.Maui.MvvmZero, 1.1.1"
// Install FunctionZero.Maui.MvvmZero as a Cake Addin #addin nuget:?package=FunctionZero.Maui.MvvmZero&version=1.1.1 // Install FunctionZero.Maui.MvvmZero as a Cake Tool #tool nuget:?package=FunctionZero.Maui.MvvmZero&version=1.1.1
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 | Versions 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. |
-
net7.0
- FunctionZero.CommandZero (>= 1.1.0)
- FunctionZero.Maui.zBind (>= 1.1.0)
-
net7.0-android33.0
- FunctionZero.CommandZero (>= 1.1.0)
- FunctionZero.Maui.zBind (>= 1.1.0)
-
net7.0-ios16.1
- FunctionZero.CommandZero (>= 1.1.0)
- FunctionZero.Maui.zBind (>= 1.1.0)
-
net7.0-maccatalyst16.1
- FunctionZero.CommandZero (>= 1.1.0)
- FunctionZero.Maui.zBind (>= 1.1.0)
-
net7.0-windows10.0.19041
- FunctionZero.CommandZero (>= 1.1.0)
- FunctionZero.Maui.zBind (>= 1.1.0)
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 | 150 | 3/31/2024 | |
8.0.2 | 100 | 3/31/2024 | |
8.0.1 | 242 | 1/7/2024 | |
8.0.0 | 180 | 10/21/2023 | |
8.0.0-pre1 | 75 | 10/14/2023 | |
2.0.4.2-pre1 | 148 | 8/26/2023 | |
2.0.4.1 | 193 | 8/20/2023 | |
2.0.4 | 148 | 8/19/2023 | |
2.0.3 | 236 | 7/8/2023 | |
2.0.2 | 152 | 6/27/2023 | |
2.0.1 | 147 | 6/26/2023 | |
2.0.0 | 173 | 4/23/2023 | |
2.0.0-pre1 | 130 | 4/22/2023 | |
1.1.2 | 236 | 3/29/2023 | |
1.1.1 | 224 | 3/21/2023 | |
1.1.0 | 238 | 3/18/2023 | |
1.0.2 | 221 | 3/16/2023 | |
1.0.1 | 213 | 3/15/2023 | |
1.0.0 | 236 | 3/15/2023 |
Initial releases! Seems stable, but you have been warned! :)
Small fix to stop silent consumption of an unlikely exception.
Note: IHasOwnerPage support for modal pages is limited to OnOwnerPagePushed and OnOwnerPagePopped.
If that is limiting for you, raise an issue and I'll see what I can do.