WPF之DatePicker使其只能选择日期,不能输入日期

<DatePicker.Resources>
  <Style TargetType="DatePickerTextBox">
           <Setter Property="IsReadOnly" Value="True"/>
  </Style>
</DatePicker.Resources>

原文地址:https://www.cnblogs.com/527289276qq/p/5802773.html