Plugin.MvvmToolkit.Maui
1.12.0
See the version list below for details.
dotnet add package Plugin.MvvmToolkit.Maui --version 1.12.0
NuGet\Install-Package Plugin.MvvmToolkit.Maui -Version 1.12.0
<PackageReference Include="Plugin.MvvmToolkit.Maui" Version="1.12.0" />
paket add Plugin.MvvmToolkit.Maui --version 1.12.0
#r "nuget: Plugin.MvvmToolkit.Maui, 1.12.0"
// Install Plugin.MvvmToolkit.Maui as a Cake Addin #addin nuget:?package=Plugin.MvvmToolkit.Maui&version=1.12.0 // Install Plugin.MvvmToolkit.Maui as a Cake Tool #tool nuget:?package=Plugin.MvvmToolkit.Maui&version=1.12.0
Plugin.MvvmToolkit.Maui
This is an implementation of the Plugin.MvvmToolkit library for .NET MAUI (Multi-platform App UI) applications.
Features
- Base ContentPage class
- Implementation of NavigationService for .NET MAUI AppShell
Installation
You can install the library via NuGet Package Manager:
Install-Package Plugin.MvvmToolkit.Maui
Usage
BaseContentPage
To create a ContentPage, simply extend the BaseContentPage<T> class, where T is the ViewModel type that extends the BaseViewModel<ILogger<T>> class. The BaseContentPage class automatically sets the BindingContext to the ViewModel instance, and executes the ViewModel.AppearingCommand and ViewModel.DisappearingCommand methods when the page appears and disappears on the screen, respectively. Additionally, you can use the On<iOS>().SetUseSafeArea(true) method to enable safe area insets on iOS devices.
NavigationService
To use the NavigationService, create an instance of the service and use its methods to navigate between ViewModels. The AddRoute method is used to register a route with a ViewModel, and the NavigateAsync and NavigateBackAsync methods are used to navigate between ViewModels.
License
This library is licensed under the MIT License. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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
- Plugin.MvvmToolkit (>= 1.12.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 |
---|---|---|
1.17.0 | 185 | 2/24/2024 |
1.16.0 | 224 | 12/30/2023 |
1.15.0 | 120 | 12/30/2023 |
1.14.0 | 248 | 10/26/2023 |
1.13.0 | 152 | 9/18/2023 |
1.12.0 | 157 | 9/14/2023 |
1.11.0 | 125 | 9/14/2023 |
1.10.0 | 178 | 8/16/2023 |
1.9.0 | 157 | 8/15/2023 |
1.8.5 | 165 | 8/13/2023 |
1.8.4 | 162 | 8/12/2023 |
1.8.3 | 163 | 8/9/2023 |
1.8.2 | 139 | 8/9/2023 |
1.8.1 | 160 | 8/8/2023 |
1.7.1 | 174 | 5/22/2023 |
1.6.0 | 153 | 5/17/2023 |
1.5.0 | 153 | 5/15/2023 |
1.4.2 | 162 | 5/11/2023 |
1.4.1 | 160 | 5/11/2023 |
1.4.0 | 156 | 5/10/2023 |
1.3.0 | 167 | 4/28/2023 |
1.2.0 | 225 | 3/7/2023 |
1.1.0 | 242 | 2/24/2023 |
1.0.0 | 243 | 2/24/2023 |