Questions tagged [mvvmcross]

MvvmCross is an open source, convention over configuration, MVVM framework for the Xamarin platform and Windows UWP, WPF, Windows Phone 8.1 (non-Silverlight), Windows 8.1 (modern Apps) and Windows Console Apps.

MvvmCross is an open source framework. It emphasises convention over configuration. The goal of this set of libraries is to help the developer accelerate the process of creating Apps; improve the amount of shared and testable code.

Compared to , which provides only the essential components and leaves the rest to the developer. MvvmCross tries to help the developer all the way by providing plug-ins for a lot of use cases.

The MvvmCross motto is: The App Is King, which means that the framework is made in such a way that most default behaviour and features are overridable and extensible in order not to get in the way of the developer.

Features

Notable features include:

  • Inversion of Control
    • Constructor Injection
    • Property Injection
  • ViewModel to ViewModel navigation
  • Advanced binding engine for
  • Plug-in infrastructure

Platforms

Getting started

The easiest way to get started with MvvmCross is to download and install either the Visual Studio MvvmCross template extension or the Xamarin Studio MvvmCross template add-in. This template provided by the community, provides a good starting point without the need to set up all the boiler plate to get started.

Alternatively to the Templates, there is a nice Visual Studio extension called Ninja Coder, which provides templates and tools for creating all kinds of MvvmCross related classes.

Resources

3717 questions
62
votes
1 answer

MarkerClick works but InfoWindowClick does not open ViewModel

The following MarkerClick implementation works, perfectly fine. I could be able to open other Views via ShowViewModel View.cs mMap.MarkerClick += MMap_MarkerClick; private void MMap_MarkerClick(object sender, GoogleMap.MarkerClickEventArgs e) { …
casillas
  • 16,351
  • 19
  • 115
  • 215
40
votes
3 answers

Change default timeout

I have the following implementation. And the default timeout is 100 seconds. I wonder how can I able to change the default timeout? HttpService.cs public class HttpService : IHttpService { private static async Task GoRequestAsync(string url,…
casillas
  • 16,351
  • 19
  • 115
  • 215
40
votes
22 answers

Android App Compile Not Generating Package Resources

When attempting to compile my Xamarin.Android app I get the compile error: Error 3 The file "obj\Debug\android\bin\packaged_resources" does not exist. MyApp.UI.Droid This error occurred after I made some changes (added some new classes - cannot…
sazr
  • 24,984
  • 66
  • 194
  • 362
32
votes
25 answers

The "ResolveLibraryProjectImports" task failed unexpectedly

I have a Xamarin project, which is based on MvvmCross. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, which I solved in no time. There are some errors, which are stuck and I couldn't solve them…
Zaeem Sattar
  • 990
  • 2
  • 12
  • 30
28
votes
4 answers

How can I use async in an mvvmcross view model?

I have a long running process in an mvvmcross viewmodel and wish to make it async (http://msdn.microsoft.com/en-us/library/vstudio/hh191443.aspx). The async keyword is currently supported in the beta channel for Xamarin. Below is an example of how…
Chris Koiak
  • 1,059
  • 2
  • 11
  • 24
26
votes
4 answers

MVVMCross support for Xamarin.iOS Storyboards

With support for XS integration of iOS storyboards about to make the Stable stream, I would love to be able to use this feature in conjunction with MVVMCross. Fundamentally it does seem a little like it should not work, as with storyboards indicate…
Jedi Developer
  • 556
  • 4
  • 6
20
votes
1 answer

Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead

I'm having this issue when I applied the toolbar into my app and it crashed when I try to run the app.I used all previous post but no luck. Here is my code : Style.xml