-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Xamarin.Forms and Avalonia support for ViewModelBase.IsInDesignMode
- Loading branch information
Showing
5 changed files
with
82 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
# <img src="src/MvvmMicro/icon.png" alt="logo" width="32" height="32" /> MvvmMicro | ||
<a href="https://www.nuget.org/packages/MvvmMicro" target="_blank"><img alt="Nuget" src="https://img.shields.io/nuget/v/MvvmMicro" /></a> | ||
|
||
A clean and lightweight MVVM framework for WPF, UWP and .NET Standard 2.0 inspired by MVVM Light Toolkit. | ||
A lightweight MVVM framework for .NET inspired by [MVVM Light Toolkit](https://github.com/lbugnion/mvvmlight). | ||
|
||
## Goals | ||
|
||
- No third party dependencies, such as `CommonServiceLocator` or `System.Windows.Interactivity`. | ||
- Avoid [feature kreep](https://en.wikipedia.org/wiki/Feature_creep) – only core MVVM types and services are included, such as `RelayCommand`, `AsyncRelayCommand`, `ObservableObject` and a simple `IMessenger`. | ||
- No feature kreep – only core MVVM types and services are included, such as `RelayCommand`, `AsyncRelayCommand`, | ||
`ObservableObject`, and a simple `IMessenger`. | ||
|
||
## Supported platforms | ||
|
||
- .NET Framework 4.6.2 & .NET 5.0 (WPF) | ||
- Universal Windows Platform (UWP) | ||
- .NET Standard 2.0 | ||
- .NET Standard 2.0 (Xamarin.Forms, Avalonia, MAUI, etc.) | ||
|
||
## Installation | ||
|
||
The primary way to use MvvmMicro is by adding the [nuget](https://www.nuget.org/packages/MvvmMicro) package to your project: | ||
``` | ||
Install-Package MvvmMicro | ||
``` | ||
|
||
## Classes and interfaces | ||
Here's an overview of classes and interfaces exposed by the library: | ||
## Overview | ||
|
||
| Type | Description | | ||
| ----- | ----------- | | ||
| ObservableObject | The base class for objects that support property change notification. | | ||
| ViewModelBase | The base class for view models with the _Messenger_ and _IsInDesignMode_ properties. | | ||
| Messenger | A service for sending and receiving messages, typically between view models and views. | | ||
| RelayCommand,<br/>RelayCommand\<T\> | An _ICommand_ implementation based on a synchronous delegate for _Execute_ and _CanExecute_. | | ||
| AsyncRelayCommand,<br/>AsyncRelayCommand\<T\> | An _ICommand_ implementation based on an asynchronous delegate for _Execute_ with cancellation support. | | ||
|
||
![Class diagram](src/MvvmMicro/Diagrams/ClassDiagram.png) | ||
|
||
## License | ||
|
||
Code licensed under the [MIT License](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters