2
我已經建立了財產和執行INotifyPropertyChangedWPF實現INotifyPropertyChanged的
是這樣的...
public event PropertyChangedEventHandler PropertyChanged;
public FlowProcess LastSelectedFlowProcess
{
get { return _lastSelectedFlowProcess; }
set
{
_lastSelectedFlowProcess = value;
Notify("LastSelectedFlowProcess");
UpdateFlows();
}
}
private void Notify(string propName)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propName));
}
我用這個確切的設置上的其他類,但由於某些原因的通知方法的PropertyChanged變量返回null。
在其他類中,當它工作時,PropertyChanged事件不是null並且評估爲委託?我在這裏錯過了什麼?
我打電話來自課堂內部的公共訪問者會有所作爲嗎?