Set the Default Date of WPF Date Picker to Current Date

后端 未结 3 956
情话喂你
情话喂你 2021-02-19 21:12

I have a WPF Datagrid in which one of the columns is a Date Column.

So i have used a DataTemplateColumn as Follows



        
3条回答
  •  名媛妹妹
    2021-02-19 21:28

    I think you need to replace

    DisplayDateStart
    

    with

    DisplayDate
    

    Because DisplayDateStart: (from the MSDN)

    Gets or sets the first date to be displayed.

    not the date to display.

提交回复
热议问题