MvvmReady 1.2.0
Install-Package MvvmReady -Version 1.2.0
dotnet add package MvvmReady --version 1.2.0
<PackageReference Include="MvvmReady" Version="1.2.0" />
paket add MvvmReady --version 1.2.0
#r "nuget: MvvmReady, 1.2.0"
// Install MvvmReady as a Cake Addin
#addin nuget:?package=MvvmReady&version=1.2.0
// Install MvvmReady as a Cake Tool
#tool nuget:?package=MvvmReady&version=1.2.0
About
Make your Cross-platform app Mvvm-Ready. Lightweight with only one small binary/file.
Installation
Get MvvmReady library from NuGet.
PM> Install-Package MvvmReady
Features
Command
It's a simple ICommand
implementation.
Use new Command(() => {})
to create a new Command.
ViewModelBase
It's an abstract base class for ViewModels.
Use Set(ref variable, value)
to set value and trigger PropertyChanged
event.
Use RaisePropertyChanged()
to trigger PropertyChanged
event for current property.
ServiceLocator
It's a simple service locator.
You can register interface to implementation by using ServiceLocator.Current.Register<IInterface, Implementation>()
.
You can also register service to itself by using ServiceLocator.Current.Register<Service>()
.
You can register a singleton service by using ServiceLocator.Current.Register<IInterface>(() => MyService.Instance)
.
To get service object, use ServiceLocator.Current.Get<IService>()
.
License
This work is licensed under MIT.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Universal Windows Platform | uap uap10.0 |
Windows Phone | wp8 wp81 wpa81 |
Windows Store | netcore netcore45 netcore451 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 1.0
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 2.0
- No dependencies.
-
Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.2.0
- ServiceLocator now can register singleton object
v1.1.0
- Stable initial release with `Command`, `ServiceLocator`, and `ViewModelBase`
- Add support to .NET 4.5, PCL profile 259, and .NET Standard