I'm getting an error on the following piece of code:
public class PathSelectionPageViewModel : ObservableObject, INavigable, INotifyPropertyChanged
{
private DriveInfo driveSelection;
public DriveInfo DriveSelection_SelectionChanged
{
get
{
return driveSelection;
}
set
{
if (value == driveSelection) return;
driveSelection = value;
NotifyOfPropertyChange(() => DriveSelection_SelectionChanged);//must be implemented
}
}
}
I'm getting the error NotifyOfPropertyChange Does not exists in current context
. All usings are ok; I checked similiar questions and found no answer. Any suggestion onwhy it can not find the NotifyOfPropertyChange
?