CodeLifter.MVVM.Maui
1.1.2-beta
This is a prerelease version of CodeLifter.MVVM.Maui.
dotnet add package CodeLifter.MVVM.Maui --version 1.1.2-beta
NuGet\Install-Package CodeLifter.MVVM.Maui -Version 1.1.2-beta
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="CodeLifter.MVVM.Maui" Version="1.1.2-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeLifter.MVVM.Maui" Version="1.1.2-beta" />
<PackageReference Include="CodeLifter.MVVM.Maui" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeLifter.MVVM.Maui --version 1.1.2-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeLifter.MVVM.Maui, 1.1.2-beta"
#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.
#:package CodeLifter.MVVM.Maui@1.1.2-beta
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeLifter.MVVM.Maui&version=1.1.2-beta&prerelease
#tool nuget:?package=CodeLifter.MVVM.Maui&version=1.1.2-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeLifter.MVVM.Maui
MVVM components for pure MAUI (XAML) applications using the CodeLifter platform.
Note: For MAUI Blazor Hybrid applications, use CodeLifter.MVVM.Maui.Blazor instead.
Installation
dotnet add package CodeLifter.MVVM.Maui
Features
- ClContentPageBase<TViewModel>: Base class for MAUI ContentPage with ViewModel binding
- Automatic ViewModel initialization on page appearing
- Property change notifications
- Full support for MAUI data binding
Usage
Creating a MAUI Page with ViewModel
using CodeLifter.Mvvm.Pages;
public partial class MyPage : ClContentPageBase<MyViewModel>
{
public MyPage(MyViewModel viewModel) : base(viewModel)
{
InitializeComponent();
}
}
XAML Example
<pages:ClContentPageBase xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:CodeLifter.Mvvm.Pages;assembly=CodeLifter.Mvvm.Maui"
x:Class="MyApp.MyPage">
<StackLayout>
<Label Text="{Binding Title}" />
<Button Text="Click Me" Command="{Binding DoSomethingCommand}" />
</StackLayout>
</pages:ClContentPageBase>
Registering ViewModels
In your MauiProgram.cs:
builder.Services.AddTransient<MyViewModel>();
builder.Services.AddTransient<MyPage>();
Dependencies
- CodeLifter.MVVM.Core - Core ViewModels and abstractions
- Microsoft.Maui.Controls - MAUI framework
Platform Support
This package supports:
- ✅ iOS
- ✅ Android
- ✅ macOS (Catalyst)
- ✅ Windows
Related Packages
- CodeLifter.MVVM.Core - Core MVVM abstractions and ViewModels
- CodeLifter.MVVM.Maui.Blazor - MVVM components for MAUI Blazor Hybrid applications
- CodeLifter.MVVM - MVVM components for Blazor Server applications
- CodeLifter.MVVM.WebAssembly - MVVM components for Blazor WebAssembly applications
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios18.5 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst18.5 is compatible. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeLifter.MVVM.Core (>= 1.1.2-beta)
- Microsoft.Maui.Controls (>= 10.0.0-rc.2.25504.7)
-
net10.0-android36.0
- CodeLifter.MVVM.Core (>= 1.1.2-beta)
- Microsoft.Maui.Controls (>= 10.0.0-rc.2.25504.7)
-
net10.0-ios18.5
- CodeLifter.MVVM.Core (>= 1.1.2-beta)
- Microsoft.Maui.Controls (>= 10.0.0-rc.2.25504.7)
-
net10.0-maccatalyst18.5
- CodeLifter.MVVM.Core (>= 1.1.2-beta)
- Microsoft.Maui.Controls (>= 10.0.0-rc.2.25504.7)
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 |
|---|---|---|
| 1.1.2-beta | 177 | 11/10/2025 |
| 1.1.1-beta | 170 | 11/10/2025 |
| 1.1.0-beta | 183 | 11/10/2025 |
| 1.0.1-beta | 153 | 11/9/2025 |
| 1.0.0-beta | 156 | 11/9/2025 |