Winui : How to make a CalendarDatePicker editable through keyboard

Harshithraj1871 1,496 Reputation points
2022-11-23T07:08:24.947+00:00

Hi,

I came across the UIElement CalendarDatePicker which helps us to pick a date from the calendar drop-down. Like this

263327-image.png

But this will only allow us to pick/select a date from the calendar view, it won't let us enter the date manually from the keyboard. I wanted an experience where we can select/pick a date from the calendar but also enter the date manually from the keyboard. Like "DATETIMEPICK_CLASSA" from Win32 API.

263333-image.png

It would be great if you could help me get the experience.

Thank You

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
723 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,525 questions
{count} votes

Accepted answer
  1. Castorix31 81,481 Reputation points
    2022-11-23T07:21:49.047+00:00

    There is also an old proposal on GitHub : Proposal: Ability to type a date into CalendarDatePicker #735
    (you can upvote/add a comment to draw attention of MS people who work on WinUI...)

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful