WPF继承的UserControl失去VS设计器支持

WPF继承的UserControl失去VS设计器支持,wpf,visual-studio-2008,inheritance,designer,Wpf,Visual Studio 2008,Inheritance,Designer,我写了这个用户控件: <my:MyUserControl x:Class="MyClass" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:my="clr-namespace:MyN

我写了这个用户控件:

<my:MyUserControl x:Class="MyClass"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:my="clr-namespace:MyNameSpace.MyControls;assembly=MyAssembly">
 </my:MyUserControl>

 public partial class Editor : MyNameSpace.MyControls.MyUserControl {}
一切正常,控件显示在VS2008设计器中,但我无法直接单击元素并选择它们,就像使用UserControl一样


知道怎么解决吗?

现在我知道为什么了

它确实可以工作,但是我的基类实现了一个IComponent接口,这就是失去设计器支持的原因

public class BaseClass: System.Windows.Controls.UserControl, System.ComponentModel.IComponent
{}
如果我删除界面,它会再次工作