Xamarin Forms Picker binding
-
Using MVVM I have a fairly typical data entry form where the user selects a Site which, in the ViewModel, creates a new SiteRisks record and pre populates the ID fields, the user then selects a bunch of values from pickers. A typical picker in XAML
Where
SelectedSiteRisks.SurfaceID
is the field on the object where the value will be stored. This works from the View > VM and the correct value is stored in the SelectedSiteRisks object but when I create a new SelectedSiteRisks object in the VM and preload the SelectedSiteRisks.SurfaceID the view does not reflect the changed value. OR Do I need to have a selecteditem for each picker and manually update the SelectedSiteRisks object.Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP