Handle Windows Phone back button pressed when using MVVM

When I building an app with a MVVM framework I want to have my view models in a portable class library so I can use same view models for the Windows Phone app as for the iOS and Android app when building apps using Xamarin. If I press the back button in a Windows Phone […]

  9/6/2014 - 10:31 PM

Use a different IoC provider then the built-in when using MvvmCross

As I wrote in an earlier post, MvvmCross has IoC built-in. If you for some reason want to use a different IoC provider then the built-in when using MvvmCross you can write your own provider and use for example Autofac or TinyIoC. This post will show you how to use Autofac. I create an own […]

  9/3/2014 - 7:34 PM

MvvmCross and IoC

MvvmCross has IoC built-in, in this post I will show how to use it. The Mvx class has a few static metods that you can use for configure the IoC container. RegisterType Use the register type method to register new types to the IoC container. //Register a type Mvx.RegisterType(); //Register a type as a singleton Mvx.RegisterSingleton(new […]

  9/3/2014 - 7:24 PM

Xamarin, MvvmCross and ValueConverters

This post will show you how to use ValueConverters in an Android app built with Xamarin. For an introduction to Xamarin and MvvmCross read this blog post. If you want to convert values before you bind it to a property you can use value converters. For example if you want to view an element if […]

  8/4/2014 - 11:03 AM

Xamarin and MvvmCross

A way to reuse so much code as possible when working with Xamarin is to use the MVVM-pattern. A framework for MVVM that works great with Xamarin is MvvmCross (http://www.nuget.org/packages/MvvmCross/3.1.1). This blog post shows the basics about to use MvvmCross with Xamarin for an Android app. More posts about Xamarin and MvvmCross will come later. […]

  5/27/2014 - 6:52 AM