Forum Xamarin.Android

How to check if the selected time in a TimePicker is valid

Hello,

I am currently developing an App using Xamarin.Forms. In my App I use two TimePickers to set a start and an ending time for some intervals. Those intervals are not supposed to overlap, so I have to check if the time a user selected is interfering with another interval. If the user selects "OK" and the time is valid the TimePicker should be dismissed, if not I would like to display a message and keep the TimePicker in place.

I already figured that I will need a custom renderer in the Android / IOs Projekts for this, I just don't really know what to do there.
For now an android solution would be sufficient for me. Could anyone help me?

Thanks in advance,
Tobias

Sign In or Register to comment.