Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以对 WPF DatePicker 的输入字段使用 MaxLength 之类的东西?
<DatePicker.Resources> <Style TargetType="{x:Type DatePickerTextBox}"> <Setter Property="MaxLength" Value="10" /> </Style> </DatePicker.Resources>