Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Xamarin Forms Picker binding

Xamarin Forms Picker binding

Scheduled Pinned Locked Moved Mobile
wpfmobilewcfarchitectureannouncement
1 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups