This question is locked. New answers and comments are not allowed.
Hello,
I've got a SL4 application I've been developing for almost 3 years... I've got a strange and weird problem.... all times I try to bind a class that implements INotifyPropertyChanged I got null on the event that should notify the change....
I've cross checked my code, copied the code from another working app... I don't know what's wrong
Here's my code
Since it's happening in the entire application what can went wrong?
I've got a SL4 application I've been developing for almost 3 years... I've got a strange and weird problem.... all times I try to bind a class that implements INotifyPropertyChanged I got null on the event that should notify the change....
I've cross checked my code, copied the code from another working app... I don't know what's wrong
Here's my code
public
partial
class
AnnullaQuestionarioUC : RadWindow, INotifyPropertyChanged
{
public
event
PropertyChangedEventHandler PropertyChanged;
public
void
NotifyPropertyChanged(
string
propertyName)
{
if
(PropertyChanged !=
null
)
{
PropertyChanged(
this
,
new
PropertyChangedEventArgs(propertyName));
}
}
private
ObservableCollection<TipoAnnulloObj> listaTipoAnnullamento;
public
ObservableCollection<TipoAnnulloObj> ListaTipoAnnullamento
{
get
{
return
listaTipoAnnullamento;
}
set
{
listaTipoAnnullamento = value;
NotifyPropertyChanged(
"ListaTipoAnnullamento"
);
}
}
//[omitt]
}
Since it's happening in the entire application what can went wrong?