title: Implementing acr.UserDialogs in Xamarin.Forms with mvvmlight
body: <p>For school we are developing a mobile app with Xamarin Forms.
  We use mvvmlight in the project. </p>
  
  <p>Now I was looking around for how to show dialogs, alerts etc. and stumbled upon <a href="https://github.com/aritchie/userdialogs" rel="nofollow noreferrer">acr.UserDialogs</a> which has everything we need. </p>
  
  <p>I added 
  <code>UserDialogs.Init(this);</code> to my MainActivity.cs </p>
  
  <p>And when I try to register it in my ViewModelLocator:</p>
  
  <p><code>SimpleIoc.Default.Register&lt;IUserDialogs, UserDialogs&gt;();</code></p>
  
  <p>This doesn't work because UserDialogs is Static type.</p>
  
  <p>I found a similiar question <a href="https://stackoverflow.com/questions/37051820/xamarin-forms-mvvm-light-idialogservice-showmessage-throwing-native-exception">Here</a>
  Which gives the following suggestion </p>
  
  <p><code>SimpleIoc.Default.Register&lt;IUserDialogs&gt;(UserDialogs.Instance);</code></p>
  
  <p>But this doesn't work neither.</p>
  
  <p>Anyone got any other suggestions? </p>
  
  <p>Thanks</p>