Forum Cross Platform with Xamarin

Is there way where I can bind the value from my models into the backend xaml.cs of my project?

I'm just wondering.

I have in my xaml page

   <Picker x:Name="pickerName" SelectedIndexChanged="pickerName_OnSelectedINdexChanged" />

Behind the code

  public ProjectName(){
      InitializeComponent();
      pickerName.Items.Add("1");
      pickerName.Items.Add("2");
  }

  public void pickerName_OnSelectedINdexChanged(object sender, EventArgs e){
      // bind the value using the mode twoway.
      // In able the picker have value to save and value to view
  }

Please help.

Sign In or Register to comment.