Cant wydaje się widzieć, gdzie idę źle? OnPropertyChange nie jest rekondnised żadnych sugestii?OnPropertyChange nie istnieje w bieżącym kontekście?
public class MedicationList : INotifyPropertyChanged
{
public int MedicationID { get; set; }
public string Description
{
get
{
return Description;
}
set
{
OnPropertyChanged("Description");
Description = value;
}
}
}
}
EDIT Dodałem public class MedicationList : INotifyPropertyChanged
Czy zadeklarowałeś metodę 'OnPropertyChanged' w dowolnym miejscu swojej klasy' MedicationList'? Nie widzę tego. –
Wykryto rekursję: 'Description = value;' –
Twoja klasa musi implementować interfejs INotifyPropertyChanged –