title: MVVMCross Get SelectedItem from a MvxBindableListView
body: <p>Little problem with my Android application and I don't know how to solve it with MVVM Cross.</p>
  
  <p>Here is my ViewModel:</p>
  
  <pre><code>public class AddressesShowViewModel : MvxViewModel
  {
      public List&lt;Address&gt; Addresses { get; set; }
  
      public AddressesShowViewModel(string addressesForListView)
      {
          Addresses = JsonConvert.DeserializeObject&lt;List&lt;Address&gt;&gt;(addressesForListView);
      }
  
      public IMvxCommand ShowItemCommand
      {
          get
          {
              //return new MvxRelayCommand&lt;Type&gt;((type) =&gt; this.RequestNavigate(type));
              return new MvxRelayCommand(DoShowContact);
          }
      }
  
      private Address selectedItem;
      public Address SelectedItem
      {
          get { return selectedItem; }
          set { selectedItem = value; FirePropertyChanged(() =&gt; SelectedItem); }
      }
  
      private void DoShowContact()
      {
          RequestNavigate&lt;AddressShowViewModel&gt;();
      }
  }
  </code></pre>
  
  <p>My AddressesShow.axml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:local="http://schemas.android.com/apk/res/INMobileCRM4Android.INMobileCRM4Android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      &gt;
  &lt;Mvx.MvxBindableListView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      local:MvxBind="{'ItemsSource':{'Path':'Addresses'},'ItemClick':{'Path':'ShowItemCommand'}, 'SelectedItem':{'Path':'SelectedItem'}}"
      local:MvxItemTemplate="@layout/addresslistitem"
    /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I would like to know, how I can get the SelectedItem from the ListView in <code>AddressesShow.axml</code>.. I tried to create a Property 'SelectedItem'.. But its getting called at the beginning, when the ViewModel is created (and is obviously returning null), not when the Item is clicked.. Its btw a type of Address, not just a String or something.. Maybe any suggestions?</p>