The .NET MVVM framework for cross-platform solutions, including Xamarin.iOS, Xamarin.Android, Windows and Mac.
Clone or download
Permalink
Failed to load latest commit information.
.github It seems like the code owners file is case sensitive (#3076) Aug 22, 2018
ContentFiles Bring back change in LinkerPleaseInclude for UITextField Sep 15, 2018
MvvmCross.Analyzers Update nuget packages Jul 11, 2018
MvvmCross.Android.Support Switch fragment host visibility exception to warning (#3166) Oct 16, 2018
MvvmCross.Forms.Wpf Add FillTargetFactories and FillBindingNames in Platforms.Forms.WPF Oct 16, 2018
MvvmCross.Forms Fix forms xaml preview on android (#3094) Sep 13, 2018
MvvmCross.Plugins Update XML comment Aug 27, 2018
MvvmCross.Tests Move Mvx into IoC Jun 18, 2018
MvvmCross.Wpf Tidying up build issues Jul 5, 2018
MvvmCross Switch fragment host visibility exception to warning (#3166) Oct 16, 2018
Projects Correct name MvxDialogViewPresentationAttribute Oct 2, 2018
UnitTests Attempt to fix failing navigation service test (#3100) Sep 13, 2018
docs Add ability to use tags from attributes (#3128) Oct 1, 2018
tools Adding SignClient, updating unit test runner + security fixes (#2949) Jun 11, 2018
.editorconfig Tidying up dispatcher code Jul 7, 2018
.gitattributes .gitattributes from MvvmCross Jul 25, 2016
.gitignore Adding SignClient, updating unit test runner + security fixes (#2949) Jun 11, 2018
.mailmap update .mailmap Mar 30, 2017
CHANGELOG.md Update changelog Oct 10, 2018
CODE_OF_CONDUCT.md Rename code_of_conduct.md to CODE_OF_CONDUCT.md May 25, 2017
CONTRIBUTING.md Use actual name of the solution file May 29, 2018
Directory.build.props Add ability to use tags from attributes (#3128) Oct 1, 2018
Directory.build.targets Removing unnecessary sdk library references Jul 4, 2018
LICENSE Update license for dotnet fdn on-boarding #2415 May 19, 2018
MvvmCross.sln Tidying up build issues Jul 5, 2018
README.md Remove tag shield as it always shows the wrong thing Oct 8, 2018
XamarinBuild.targets Bumping Xamarin.Build version Jun 5, 2018
XamarinForms.targets Tidying up build issues Jul 5, 2018
XamarinFormsWpf.targets Tidying up build issues Jul 5, 2018
appveyor.yml Adding SignClient, updating unit test runner + security fixes (#2949) Jun 11, 2018
build.cake Add ability to use tags from attributes (#3128) Oct 1, 2018
build.ps1 Get the latest bootstrap script Oct 12, 2017
build.sh Make build.sh executable so that `./build.sh` works Apr 7, 2018
global.json Upgrading MSBuild SDK Extras to 1.6.41 Jul 21, 2018
install-android-sdk.ps1 Make it easier to change csproj versions and update nugets (#2695) Mar 19, 2018
signclient.json Adding SignClient, updating unit test runner + security fixes (#2949) Jun 11, 2018

README.md

MvvmCross Logo

MvvmCross

Twitter: @MvvmCross license Build status NuGet NuGet Pre Release MyGet OpenCollective OpenCollective CodeFactor

👀 Check out 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.


Check out the MvvmCross docs


Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Installation

Grab the latest MvvmCross NuGet 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. 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.

When filing issues, please select the appropriate issue template. 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
  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. 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. We actively do development on the develop branch. This means that all pull requests by contributors need to be develop and requested against the develop 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

Questions & support

Licensing

MvvmCross is licensed under the MS-PL License

  • MonoCross was the original starting point for this project, and was used as a reference under MIT
  • Tiny bits of MvvmLight are redistributed and modified under MIT
  • Messenger ideas from 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 under MIT License
  • Some bits of Mvvm.Async are redistributed and modified under MIT License

Acknowledgements

  • Thanks to McCannLondon for sponsoring the initial part of this work
  • Thanks to JetBrains for a community Resharper license to use on this project

.NET Foundation

This project is supported by the .NET Foundation.