我有一个基本的通用自定义控件(祖 parent )。为了让设计者能够毫无问题地显示继承控件,我先(parent)继承自grandparent,最后继承parent。子控件是在窗体上使用的控件。
如果我在祖父控件中实现INotifyPropertyChanged
接口(interface),子控件是否会被识别为实现了这个接口(interface)?
最佳答案
是的,会的。但是您有责任为您在派生类中添加的新属性引发事件
查看更多C# Language Specification: Interface implementation inheritance
关于c# - 自定义控件是否继承基类 INotifyPropertyChanged 接口(interface)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29767204/