Plugin.MvvmToolkit
1.7.1
See the version list below for details.
dotnet add package Plugin.MvvmToolkit --version 1.7.1
NuGet\Install-Package Plugin.MvvmToolkit -Version 1.7.1
<PackageReference Include="Plugin.MvvmToolkit" Version="1.7.1" />
paket add Plugin.MvvmToolkit --version 1.7.1
#r "nuget: Plugin.MvvmToolkit, 1.7.1"
// Install Plugin.MvvmToolkit as a Cake Addin #addin nuget:?package=Plugin.MvvmToolkit&version=1.7.1 // Install Plugin.MvvmToolkit as a Cake Tool #tool nuget:?package=Plugin.MvvmToolkit&version=1.7.1
Plugin.MvvmToolkit
This is a .NET library that provides a set of base classes and services to facilitate building MVVM (Model-View-ViewModel) based applications.
Features
- BaseViewModel class with logging capabilities
- INavigationService to navigate between ViewModels
Installation
You can install the library via NuGet Package Manager:
Install-Package Plugin.MvvmToolkit
Usage
BaseViewModel
To create a ViewModel, simply extend the BaseViewModel<TLogger> class, where TLogger is a logger instance that implements the ILogger interface. The BaseViewModel class provides two virtual methods, OnAppearing and OnDisappearing, that are called when the ViewModel appears or disappears on the screen, respectively.
INavigationService
To use the INavigationService, 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
- CommunityToolkit.Mvvm (>= 8.2.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Plugin.MvvmToolkit:
Package | Downloads |
---|---|
Plugin.MvvmToolkit.Maui
.NET MAUI implementation of the Plugin.MvvmToolkit library for building applications using the MVVM pattern. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.17.0 | 174 | 2/24/2024 |
1.16.0 | 256 | 12/30/2023 |
1.15.0 | 118 | 12/30/2023 |
1.14.0 | 259 | 10/26/2023 |
1.13.0 | 173 | 9/18/2023 |
1.12.0 | 165 | 9/14/2023 |
1.11.0 | 143 | 9/14/2023 |
1.10.0 | 209 | 8/16/2023 |
1.9.0 | 195 | 8/15/2023 |
1.8.5 | 199 | 8/13/2023 |
1.8.4 | 189 | 8/12/2023 |
1.8.3 | 201 | 8/9/2023 |
1.8.2 | 169 | 8/9/2023 |
1.8.1 | 193 | 8/8/2023 |
1.7.1 | 199 | 5/22/2023 |
1.6.0 | 181 | 5/17/2023 |
1.5.0 | 179 | 5/15/2023 |
1.4.2 | 173 | 5/11/2023 |
1.4.1 | 158 | 5/11/2023 |
1.4.0 | 192 | 5/10/2023 |
1.3.0 | 199 | 4/28/2023 |
1.2.0 | 274 | 3/7/2023 |
1.1.0 | 276 | 2/24/2023 |
1.0.0 | 275 | 2/24/2023 |