A slightly improved response to Jason's answer. Setting IsVisible in DatePicker to false and then setting it to Focus() works, however, you may find that when you click Cancel, the focus remains on DatePicker. If the DatePicker already has focus, it does not display the date picker again. Here is the code that will always work no matter how the user interacts with the dialog:
DatePickerTapRecogniser.Tapped += (object sender, EventArgs e) => { Device.BeginInvokeOnMainThread (() => { if (DatePickerComponent.IsFocused) { DatePickerComponent.Unfocus (); } DatePickerComponent.Focus (); }); };
source share