0
我在WPF中创建UserControl,但它不直接从UserControl类继承。我的基类的东西如下图所示WPF UserControl继承自定制UserControl类不工作
public class MyUserControlBase: UserControl, IMyInterface1, IMyInterface2
{..}
现在,在我的用户的项目,我已经改变了用户控件类签名
FROM
public partial class MyUserControl: UserControl //This is by default when the project was created.
TO
public partial class MyUserControl: MyUserControlBase
但出错“部分声明的'UI.MyUserControl'不能指定不同的基类”。
请建议我必须改变以使其运行。