public override void ViewDidLoad() { base.ViewDidLoad (); var source = new MyTableViewSource (TableView); TableView.Source = source; var set = this.CreateBindingSet<PickerView, PickerViewModel> (); set.Bind (source).For (x => x.ItemsSource).To (vm => vm.Values); set.Bind (source).For (x => x.SelectionChangedCommand).To (vm => vm.SelectValue); set.Apply (); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MyTableViewSource(TableView); TableView.Source = source; var set = this.CreateBindingSet <PickerView, PickerViewModel> (); set.Bind(source).For(x => x.ItemsSource).To(vm => vm.Values); set.Bind(source).For(x => x.SelectionChangedCommand).To(vm => vm.SelectValue); set.Apply(); }