如何使用当前日期
显示RadDatePicker加载时的displaydate或selecteddate xmlns:sys="clr-namespace:System;assembly=mscorlib"
<telerik:RadDatePicker x:Name="datepicker1" Grid.Column="1"
Grid.Row="1" Margin="0,2"
IsReadOnly="False"
AllowDrop="True"
SelectedDate="{x:Static sys:DateTime.Now}" DisplayDateStart="{x:Static sys:DateTime.Now}"
SelectedValue="{Binding Path=SelectedDate,Mode=OneWay}"
/>
默认情况下,RaddatePicker显示1/1/0001,如何显示当前日期?
答案 0 :(得分:4)
我试过这个,它和我一起工作正常,我有简单的DatePicker
<DatePicker x:Name="datepicker1" Grid.Column="1"
Grid.Row="1" Margin="0,2"
AllowDrop="True"
SelectedDate="{x:Static sys:DateTime.Now}"
/>
我希望这会有所帮助