WPF Datepicker to disable user input

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

    Add the property

    Focusable = "False"

    to your datepicker. This should not allow user to enter any string in datepicker textbox

    
    

提交回复
热议问题