question

abanoubadly-0688 avatar image
0 Votes"
abanoubadly-0688 asked JarvanZhang-MSFT edited

xamarin forms datePicker

I'm using Xamarin Forms for android and IOS. and I need to make the year section in the date picker dialogue Clickable.

145154-datepicker.png



because I cannot select the year it is only months selection. the problems with this is if I want to go 10 years behind I need to change the month page 120 times which make a very poor user experience.

dotnet-xamarin
datepicker.png (108.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered JarvanZhang-MSFT edited

Hello,​

Welcome to our Microsoft Q&A platform!

because I cannot select the year it is only months selection

The year part of DatePicker is clickable and support to select a number from the list. Click on the year number and the dialog will be shown. Please test the function on your side.

Best Regards,

Jarvan Zhang


If the response is helpful, 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.