I am building up a few forms (using `TableView`) and noticed that I was styling the cells the same. I decided that I would refactor this repeated code into a common control.

I am struggling to get the binding to work on the picker correctly. My custom control looks like this:[![picture of the cell](https://i.stack.imgur.com/whDYv.png)](https://i.stack.imgur.com/whDYv.png)

My control is a `ViewCell`, so that I can display it within a `TableView`:

```
public partial class PickerCell : ViewCell
{
...
}

```

I have been able to set the pickers `ItemSource`, but I cannot get the `SelectedItem` or `DisplayItemBinding` properties to work.

I've seen [this post from 2015](https://forums.xamarin.com/discussion/37933/bindable-picker-in-a-cell) (ancient now) but I tried and the methods were marked as obsolete and didn't work anyway.

I've also tried in the controls ctor:

```
ItemPicker.SetBinding(Picker.ItemsSourceProperty, "ItemSource");
ItemPicker.SetBinding(Picker.SelectedItemProperty, "SelectedItem", BindingMode.TwoWay);

```

but that didn't work either.

I basically just want to add a way so that I can bind to the picker from my xaml to the control. I really hope this is possible because I use this exact view cell around my application maybe 9/10 times. I really don't to be repeating myself alot and I'd normally create controls in this scenario. For instance I have a similarly styled cell for entries and that works perfectly....

Here is the code I used to set the item source:

```
public static readonly BindableProperty ItemsSourceProperty = BindableProperty.Create(
    nameof(ItemsSource),
    typeof(IList),
    typeof(PickerCell)
    propertyChanged: (bindable, oldVal, newVal) => ((PickerCell) bindable).OnItemsSourceChanged((IList) newVal)
);

public IList ItemsSource
{
    get { return (IList)GetValue(ItemsSourceProperty); }
    set { SetValue(ItemsSourceProperty, value); }
}

private void OnItemsSourceChanged(IList list)
{
    ItemPicker.ItemsSource = list;
}

```

I tried to implement some of the code for picker [from Xamarin](https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Core/Picker.cs) but to no avail. 

Any ideas?