MvvmReady 1.2.0

.NET Standard 1.0 .NET Framework 4.5
Install-Package MvvmReady -Version 1.2.0
dotnet add package MvvmReady --version 1.2.0
<PackageReference Include="MvvmReady" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MvvmReady --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MvvmReady, 1.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet NuGet Build status

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
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 1.3

  • .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.

Version Downloads Last updated
1.2.0 1,387 2/14/2018
1.1.0 840 2/11/2018

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