I am refactoring an app using MvvmCross and I am in the midst of getting a Settings View to show on the three platforms: WP7, Android and iPhone. I have created a SettingsViewModel which holds two lists. One with Update Frequencies to poll a server and another one with information for which server to poll. These are called UpdateFrequencies and PublicSites. The two lists each have a property in the SettingsViewModel to determine which UpdateFrequency and which Site has been selected, UpdateFrequency and SelectedSite.
On WP7 this data is bound to a ListPicker like this:
<toolkit:ListPicker
Name="UpdateFrequencies"
ItemsSource="{Binding UpdateFrequencies}"
SelectedItem="{Binding UpdateFrequency, Mode=TwoWay}"
Header="Real-time data update frequency"
/>
Similarly on Android it is bound to a Spinner like this:
<cirrious.mvvmcross.binding.android.views.MvxBindableSpinner
android:id="@+id/SpinnerUpdateFrequencies"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
local:MvxDropDownItemTemplate="@layout/spinneritem_updatefrequencydropdown"
local:MvxItemTemplate="@layout/spinneritem_updatefrequency"
local:MvxBind="{'ItemsSource':{'Path':'UpdateFrequencies'},'SelectedItem':{'Path':'UpdateFrequency','Mode':'TwoWay'}}"
/>
Now I am trying to do the same on iPhone and I just can't seem to wrap my head around how to bind it in a similar fashion. I have been looking through all the samples I could find and cannot seem to find something similar. Can someone maybe point me in the correct direction?