Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

XamUInfrastructure

Mark Smith edited this page Sep 2, 2016 · 2 revisions

XamUInfrastructure

The XamUInfrastructure static class provides methods to initialize all the service implementations and the service locator or IoC container.

Properties

Methods

Example

public class App : Application
{
   public App()
   {
      IDependencyService ds = XamUInfrastructure.Init();
      ds.Register<MainViewModel>();
      MainPage = new NavigationPage(new MainPage());
   }
}