【发布时间】:2016-01-04 09:44:05
【问题描述】:
我有以下DatePicker控制:
<Grid x:Name="LayoutRoot" Background="White">
<DatePicker Margin="2" Grid.Column="1" VerticalAlignment="Center"/>
</Grid>
是否可以只允许用户设置数字输入?或者在无法实现的情况下如何禁用文本框输入
【问题讨论】:
-
Allow only numeric values 并将其适配到 DatePicker 的文本框和 Disable the text input
标签: c# wpf datepicker