MvvmReady 1.2.0

Make cross-platform app MVVM-ready with only single lightweight small binary or file.

Install-Package MvvmReady -Version 1.2.0
dotnet add package MvvmReady --version 1.2.0
paket add 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.

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.

Release Notes

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

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

Version History

Version Downloads Last updated
1.2.0 202 2/14/2018
1.1.0 138 2/11/2018