raddatepicker

populate the telerik RadDatePicker with current date in Xaml wpf

偶尔善良 提交于 2019-12-11 04:49:45
问题 how to show the displaydate or selecteddate on load for RadDatePicker with current date 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}" /> by default the RaddatePicker shows the 1/1/0001, how to show the current date ? 回答1: I