O'Reilly logo

Using MVVM Light with your Xamarin Apps by Paul Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Paul Johnson 2018

Paul Johnson, Using MVVM Light with your Xamarin Apps, https://doi.org/10.1007/978-1-4842-2475-5_3

3. Inversion of Control (IoC) & Messaging

Paul Johnson

(1)Merseyside, UK

For any form of MVVM system to work within your Xamarin application, it must rely on a pattern known as inversion of control. Without some form of IoC in place, the PCL part of the application will just act as a library. By definition, a library can only supply information—it cannot inject information.

Along with IoC comes dependency injection (or DI, as it is often referred to). Dependency injection is a technique often used to have the library injection information from another service (typically hosted on the platform). It then relies upon that information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required