Hi,
I'm having an issue binding with the RadDatePicker. I'm using WPF, .NET 4.0 and RadControls for WPF Q3 2010 SP1. I'm trying to bind to a property on a view model that implements INotifyPropertyChanged, but it never seems to update the source.
On the xaml:
On the view model:
Thanks in advance,
Wyatt
I'm having an issue binding with the RadDatePicker. I'm using WPF, .NET 4.0 and RadControls for WPF Q3 2010 SP1. I'm trying to bind to a property on a view model that implements INotifyPropertyChanged, but it never seems to update the source.
On the xaml:
<
telerik:RadDatePicker
HorizontalAlignment
=
"Left"
Margin
=
"28,90,0,0"
Name
=
"radDatePicker1"
VerticalAlignment
=
"Top"
Width
=
"223"
SelectedValue
=
"{Binding Path=BoundDate}"
/>
On the view model:
/// <summary>
/// Gets the BoundDate property.
/// Changes to that property's value raise the PropertyChanged event.
/// This property's value is broadcasted by the Messenger's default instance when it changes.
/// </summary>
public
DateTime BoundDate
{
get
{
return
_boundDate;
}
set
{
if
(_boundDate == value)
{
return
;
}
var oldValue = _boundDate;
_boundDate = value;
// Update bindings and broadcast change using GalaSoft.MvvmLight.Messenging
RaisePropertyChanged(BoundDatePropertyName, oldValue, value,
true
);
}
}
Thanks in advance,
Wyatt