203 строки
17 KiB
Markdown
203 строки
17 KiB
Markdown
<h3 align="center">
|
|
<a href="https://www.mvvmcross.com/" target="_blank">
|
|
<img src="docs/assets/img/logo/MvvmCross-logo.png" alt="MvvmCross Logo" />
|
|
</a>
|
|
</h3>
|
|
|
|
MvvmCross
|
|
==========
|
|
[![Twitter: @MvvmCross](https://img.shields.io/badge/contact-@MvvmCross-blue.svg?style=flat)](https://twitter.com/MvvmCross)
|
|
![license](https://img.shields.io/github/license/mvvmcross/mvvmcross.svg)
|
|
[![Build status](https://ci.appveyor.com/api/projects/status/eih9kn75kujmmuf1?svg=true)](https://ci.appveyor.com/project/MvvmCross/mvvmcross)
|
|
[![NuGet](https://img.shields.io/nuget/v/MvvmCross.svg)](https://www.nuget.org/packages/MvvmCross/)
|
|
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/MvvmCross.svg)](https://www.nuget.org/packages/MvvmCross/)
|
|
[![GitHub tag](https://img.shields.io/github/tag/mvvmcross/mvvmcross.svg)](https://github.com/MvvmCross/MvvmCross/releases)
|
|
[![MyGet](https://img.shields.io/myget/mvvmcross/v/MvvmCross.svg)](https://www.myget.org/F/mvvmcross/api/v3/index.json)
|
|
[![OpenCollective](https://opencollective.com/mvvmcross/backers/badge.svg)](#backers)
|
|
[![OpenCollective](https://opencollective.com/mvvmcross/sponsors/badge.svg)](#sponsors)
|
|
[![CodeFactor](https://www.codefactor.io/repository/github/mvvmcross/mvvmcross/badge)](https://www.codefactor.io/repository/github/mvvmcross/mvvmcross)
|
|
|
|
👀 Check out [mvvmcross.com](https://www.mvvmcross.com) to get started with MvvmCross 👀
|
|
|
|
MvvmCross is a cross-platform MVVM framework. It enables developers to create apps using the MVVM pattern on *Xamarin.iOS, Xamarin.Android, Xamarin.Mac, Xamarin.Forms, Universal Windows Platform (UWP) and Windows Presentation Framework (WPF)*. This allows for better code sharing by allowing you to share behavior and business logic between platforms.
|
|
|
|
Among the features MvvmCross provides are:
|
|
|
|
- ViewModel to View bindings using own customizable binding engine, which allows you to create own binding definitions for own custom views
|
|
- ViewModel to ViewModel navigation, helps you share behavior on how and when to navigate
|
|
- Inversion of Control through Dependency Injection and Property Injection
|
|
- Plugin framework, which lets you plug-in cool stuff like GPS Location, Localization, Sensors, Binding Extensions and a huge selection of 3rd party community plug-ins
|
|
|
|
MvvmCross is extendable by you. We strive to let as much code be configurable and overridable, to let the developer decide how they want to use the framework. However, the framework is very usable without doing anything.
|
|
|
|
<hr />
|
|
<h4 align="center">
|
|
Check out the <a href="https://www.mvvmcross.com/documentation">MvvmCross docs</a>
|
|
</h4>
|
|
<hr />
|
|
|
|
### Backers
|
|
|
|
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/mvvmcross#backer)]
|
|
|
|
<a href="https://opencollective.com/mvvmcross/backer/0/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/0/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/1/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/1/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/2/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/2/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/3/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/3/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/4/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/4/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/5/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/5/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/6/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/6/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/7/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/7/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/8/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/8/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/9/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/9/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/10/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/10/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/11/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/11/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/12/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/12/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/13/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/13/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/14/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/14/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/15/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/15/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/16/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/16/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/17/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/17/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/18/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/18/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/19/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/19/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/20/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/20/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/21/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/21/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/22/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/22/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/23/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/23/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/24/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/24/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/25/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/25/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/26/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/26/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/27/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/27/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/28/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/28/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/backer/29/website" target="_blank"><img src="https://opencollective.com/mvvmcross/backer/29/avatar.svg"></a>
|
|
|
|
### Sponsors
|
|
|
|
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/mvvmcross#sponsor)]
|
|
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/0/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/0/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/1/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/1/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/2/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/2/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/3/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/3/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/4/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/4/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/5/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/5/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/6/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/6/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/7/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/7/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/8/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/8/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/9/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/9/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/10/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/10/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/11/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/11/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/12/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/12/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/13/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/13/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/14/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/14/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/15/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/15/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/16/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/16/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/17/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/17/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/18/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/18/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/19/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/19/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/20/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/20/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/21/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/21/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/22/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/22/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/23/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/23/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/24/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/24/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/25/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/25/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/26/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/26/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/27/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/27/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/28/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/28/avatar.svg"></a>
|
|
<a href="https://opencollective.com/mvvmcross/sponsor/29/website" target="_blank"><img src="https://opencollective.com/mvvmcross/sponsor/29/avatar.svg"></a>
|
|
|
|
## Installation
|
|
|
|
Grab the latest [MvvmCross NuGet](https://www.nuget.org/packages/MvvmCross/) package and install in your solution.
|
|
|
|
> Install-Package MvvmCross
|
|
|
|
Make sure that both the shared core project and your application projects include the NuGet. For more details please visit the [Getting Started documentation.](https://www.mvvmcross.com/documentation/getting-started/getting-started) which also provide easier ways, through Visual Studio and Xamarin Studio plugins to install and manage MvvmCross in your project.
|
|
|
|
## Filing issues
|
|
|
|
We strive to keep the GitHub issues list for bugs, features and other important project management tasks. If you have questions please see the [Questions & support section below](#questions--support).
|
|
|
|
When filing issues, please use our [ISSUE_TEMPLATE](/.github/ISSUE_TEMPLATE.md). The best way to get your bug fixed is to be as detailed as you can be about the problem.
|
|
Providing a minimal git repository with a project showing how to reproduce the problem is ideal. Here are a couple of questions you can answer before filing a bug.
|
|
|
|
1. Did you try find your answer in the [documentation](https://www.mvvmcross.com)
|
|
2. Did you include a snippet of the broken code in the issue?
|
|
3. Can you reproduce the problem in a brand new project?
|
|
4. What are the _*EXACT*_ steps to reproduce this problem?
|
|
5. What platform(s) are you experiencing the problem on?
|
|
|
|
Remember GitHub issues support [markdown](http://github.github.com/github-flavored-markdown/). When filing bugs please make sure you check the formatting of the issue before clicking submit.
|
|
|
|
## Contributing code
|
|
|
|
We are happy to receive Pull Requests adding new features and solving bugs. As for new features, please contact us before doing major work. To ensure you are not working on something that will be rejected due to not fitting into the roadmap or ideal of the framework.
|
|
|
|
### Git setup
|
|
|
|
Since Windows and UNIX-based systems differ in terms of line endings, it is a very good idea to configure git autocrlf settings.
|
|
|
|
On *Windows* we recommend setting `core.autocrlf` to `true`.
|
|
|
|
```
|
|
git config --global core.autocrlf true
|
|
```
|
|
|
|
On *Mac* we recommend setting `core.autocrlf` to `input`.
|
|
|
|
```
|
|
git config --global core.autocrlf input
|
|
```
|
|
|
|
### Code style guidelines
|
|
|
|
Please use 4 spaces for indentation.
|
|
|
|
Otherwise default ReSharper C# code style applies.
|
|
|
|
### Project Workflow
|
|
|
|
Our workflow is loosely based on [Github Flow](http://scottchacon.com/2011/08/31/github-flow.html).
|
|
We actively do development on the **develop** branch. This means that all pull requests by contributors need to be develop and requested against the deveop branch.
|
|
The master branch contains tags reflecting what is currently on NuGet.org.
|
|
|
|
### Submitting Pull Requests
|
|
|
|
Make sure you can build the code. Familiarize yourself with the project workflow and our coding conventions. If you don't know what a pull request is
|
|
read this https://help.github.com/articles/using-pull-requests.
|
|
|
|
Before submitting a feature or substantial code contribution please discuss it with the team and ensure it follows the MvvmCross roadmap.
|
|
Note that code submissions will be reviewed and tested. Only code that meets quality and design/roadmap appropriateness will be merged into the source. [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)
|
|
|
|
## Questions & support
|
|
|
|
* [StackOverflow](http://stackoverflow.com/questions/tagged/mvvmcross)
|
|
* [Xamarin forums](http://forums.xamarin.com)
|
|
* [Slack](https://xamarinchat.herokuapp.com/) join the #mvvmcross channel after you are in
|
|
|
|
### Licensing
|
|
|
|
MvvmCross is licensed under the [MS-PL License](http://opensource.org/licenses/ms-pl.html)
|
|
|
|
* [MonoCross](http://code.google.com/p/monocross/) was the original starting point for this project, and was used as a reference under MIT
|
|
* [Phone7.Fx](http://phone7.codeplex.com) is redistributed and modified under MS-PL
|
|
* Tiny bits of [MvvmLight](http://mvvmlight.codeplex.com/) are redistributed and modified under MIT
|
|
* [NewtonSoft.Json](https://github.com/JamesNK/Newtonsoft.Json) is redistributed and modified here under MIT
|
|
* The original work on the [JSON.Net port](https://github.com/chrisntr/Newtonsoft.Json) to MonoTouch and MonoDroid was done by @ChrisNTR
|
|
* [Sqlite-net](https://github.com/praeclarum/sqlite-net/blob/master/LICENSE.md) - custom license
|
|
* [MonoTouch.Dialog](https://github.com/migueldeicaza/MonoTouch.Dialog) - MIT X11
|
|
* [MonoDroid.Dialog](https://github.com/kevinmcmahon/MonoDroid.Dialog) - MIT X11
|
|
* Messenger ideas from [JonathanPeppers/XPlatUtils](https://github.com/jonathanpeppers/XPlatUtils) under Apache License Version 2.0, and from GrumpyDev/TinyMessenger under simple license of "THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY"
|
|
* [Color codes](https://github.com/mono/sysdrawing-coregraphics) under MIT License
|
|
* Some bits of [Mvvm.Async](https://github.com/StephenCleary/Mvvm.Async) are redistributed and modified under MIT License
|
|
|
|
|
|
### Acknowledgements
|
|
|
|
* Thanks to [McCannLondon](http://blogs.mccannlondon.co.uk/) for sponsoring the initial part of this work
|
|
* Thanks to [JetBrains](http://jetbrains.com) for a community Resharper license to use on this project
|
|
|
|
[so]: http://stackoverflow.com/questions/tagged/mvvmcross "MvvmCross on StackOverflow"
|
|
[xfmvx]: http://forums.xamarin.com/search?Search=mvvmcross "MvvmCross on Xamarin Forums"
|
|
[xf]: http://forums.xamarin.com "Xamarin Forums"
|