WPF Datepicker to disable user input

前端 未结 6 2222
离开以前
离开以前 2021-02-19 08:44

I have a datepicker, but it is allowing me to enter any text. I want to disable user from entering text. User should be allowed to select date from the calendar.



        
6条回答
  •  长发绾君心
    2021-02-19 09:00

    This one worked for me (global style for all datepickers):

    
    

    Be aware: it also sets a custom string format.

提交回复
热议问题