【问题标题】:Set the minValue directly in a DateTimePicker直接在 DateTimePicker 中设置 minValue
【发布时间】:2013-06-10 10:04:08
【问题描述】:

有没有办法直接在DateTimePicker 中而不是在DateTime 中设置 minValue。 我使用 WPF 和 dotnet 4.0。

【问题讨论】:

  • 你这是什么意思?
  • datagird 的最小值是 01/01/0001,我希望最小值是 12/31/2999。
  • 创建DateTime 对象并将其分配给DateTimePickerMinDate
  • 如何设置 dateTime 的 minValue 值?像这样: DateTime myDate; myDate.minValue=12/31/2999

标签: c# .net wpf xaml datagrid


【解决方案1】:

这可能是你的答案。

 <DatePicker Grid.Row="2" DisplayDateStart="1/1/2013" DisplayDateEnd="5/10/2013" />

如果不是,请提供更详细的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-05
    • 1970-01-01
    • 2020-09-04
    • 2015-04-25
    • 1970-01-01
    • 2013-08-03
    • 1970-01-01
    相关资源
    最近更新 更多