C# INotifyPropertyChanged基类
如果我有一个实现C# INotifyPropertyChanged基类,c#,inotifypropertychanged,C#,Inotifypropertychanged,如果我有一个实现INotifyPropertyChanged public class ResourceWrapperBase : INotifyPropertyChanged 是否在基类中触发propertychanged事件,如下所示: PropertyChanged(this, new PropertyChangedEventArgs(null)) 是否还要更新继承自该基类的类中属性的所有绑定 public class ResourceWrapper : ResourceWrappe
INotifyPropertyChanged
public class ResourceWrapperBase : INotifyPropertyChanged
是否在基类中触发propertychanged事件,如下所示:
PropertyChanged(this, new PropertyChangedEventArgs(null))
是否还要更新继承自该基类的类中属性的所有绑定
public class ResourceWrapper : ResourceWrapperBase
换句话说,我想在ResourceWrapperBase中的propertychanged事件触发时更新ResourceWrapper中属性的所有绑定
这是可能的吗?通常使用PropertyChangedEvents(null)触发PropertyChanged事件会导致更新所有绑定。我是这么想的,但它不会更新子类中的绑定。真傻,我忘了添加csproj文件