Hello,
For android, you can use handler.PlatformView.PerformClick();
to make the DatePicker
appear when image was tabbed. For iOS DA_DatePicker.Focus();
will open the datepicker.
private async void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
{
var handler = DA_DatePicker.Handler as IDatePickerHandler;
#if ANDROID
handler.PlatformView.PerformClick();
#elif IOS || MACCATALYST
DA_DatePicker.Focus();
#endif
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.