WPF Datepicker to disable user input

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

    seems like there is no property on DatePicker to make the TextBox read only.

    Try the below style setting

            
                
                    
                
            
    

提交回复
热议问题