WPF Datepicker to disable user input

前端 未结 6 2226
离开以前
离开以前 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:02

    No need to set any thing to datepicker, when you out focus datepicker will remove text automatically, only date was remain in textbox.

提交回复
热议问题