自定义控件是否继承base class INotifyPropertyChanged 接口?

Does a custom control inherit base class INotifyPropertyChanged interface?

我有一个基本的通用自定义控件 (grandparent)。为了让设计者能够毫无问题地显示继承控件,我先从grandparent继承(parent),最后从parent继承。 child 控件是在窗体上使用的控件。

如果我在grandparent控件中实现INotifyPropertyChanged接口,child会被识别为实现这个接口吗?

是的,会的。但您有责任为您在派生 class

中添加的新属性引发事件

查看更多C# Language Specification: Interface implementation inheritance

是的。每个 child 的继承都从它们的 parents 中获得所有 public 或受保护的变量和方法。例如,所有 object 都获得与 object class.

相同的方法

有关详细信息,请查看 MSDN: Inheritance (C# Programming Guide)