This question is locked. New answers and comments are not allowed.
I am using Silverlight 5. Telerik 2011.1 419. I have a RadDatePicker with DisplayDateStart="1/1/1985" and DisplayDateEnd="1/1/2100". When the SelectedDate property is set to 1/1/2000, the application runs fine. However, when the SelectedDate property is set to 1/1/2200, the application crashes. (Note: I cannot attach sample solution.)
Xaml
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadDatePicker
SelectedDate
=
"{Binding SelectedDate, Mode=TwoWay}"
DisplayDateStart
=
"1/1/1985"
DisplayDateEnd
=
"1/1/2100"
Height
=
"30"
Width
=
"150"
Margin
=
"50,45,0,0"
/>
</
Grid
>
C#
public MainPage()
{
InitializeComponent();
DataContext = this;
}
private DateTime? _selectdDate = null;
public DateTime? SelectedDate
{
get { return _selectdDate; }
set
{
_selectdDate = value;
NotifyPropertyChanged("SelectedDate");
}
}
public event PropertyChangedEventHandler PropertyChanged;
public void NotifyPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
SelectedDate = new DateTime(2000,1,1);
//This will not work! DateTime(2300,1,1);
}