Xamarin.Forms DatePicker Time

I am using Xamarin Forms Date Picker and it works fine. But the collector only displays the month, day, and year. I also need to add the ability for the user to set the time. Is there a built-in way to do this, or can I subclass Picker and add it?

+5
source share
2 answers

Xamarin Forms has a separate TimePicker control. There seems to be no single integrated DateTime control.

+8
source

I created a control called DateTimePicker. It combines the DatePicker and TimePicker controls. This is due to the fact that we deal with DateTimes together a lot of time - not separately. The control is located in this Adapt.Presentation library. Bilateral binding patterns can be found inside the repo.

https://github.com/MelbourneDeveloper/Adapt.Presentation.git

Soon I will support the NuGet package, but I am updating it a bit slowly, so it is best to get the code and compile it now.

0
source

Source: https://habr.com/ru/post/1207672/


All Articles