【发布时间】:2014-06-06 08:35:15
【问题描述】:
我在以下代码中遇到错误:
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
}
}
}
我收到错误 NotifyOfPropertyChange Does not exists in current context。所有使用都可以;我检查了类似的问题,但没有找到答案。关于为什么找不到NotifyOfPropertyChange有什么建议吗?
【问题讨论】:
-
嗯...您的项目中是否包含了对 Caliburn 的引用?
-
NotifyOfPropertyChange在哪里实现? -
@GayotFow 我想你找到了答案。我不知道这是来自外部库
标签: c# wpf visual-studio .net-assembly caliburn.micro