public virtual UIDatePicker CreatePicker()
{
var bounds = UIScreen.MainScreen.Bounds;
var picker = new UIDatePicker(new RectangleF(0, 0, bounds.Width, UIDevice.CurrentDevice.GetKeyboardHeight()))
{
AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight,
Mode = UIDatePickerMode.Date
};
picker.ValueChanged += (sender, e) => DataContext.Value = DatePicker.Date;
return picker;
}
}