I have the following dependency property:
public static DependencyProperty RequestObjectProperty = DependencyProperty.Register("RequestObject", typeof(RegistrationCardSearch), typeof(RegCardSearchForm),new UIPropertyMetadata(Changed));
private static void Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
MessageBox.Show("Property Changed!!!");
}
public RegistrationCardSearch RequestObject
{
get
{
return (RegistrationCardSearch)GetValue(RequestObjectProperty);
}
set
{
SetValue(RequestObjectProperty, value);
}
}
and Modified , which should fire when the dependency property changes. My property type is RegistrashionCardSearch (class). When I change the value of the class properties in the dependency property, the change call back property is not fired. Why ?? My RegistrashionCardSearch class implements the INotifePropertyChanged interface
source
share