WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么?

| WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么? 我们可以使用这两个属性在设计时显示/隐藏某个控件,但是WP7的FCL不包含它们。 什么是替代解决方案? 谢谢 简而言之:如何从Visual Studio的工具箱中隐藏WP7自定义控件?     
已邀请:
        您可以尝试将以下代码放入自定义控件的构造函数中:
if (DesignerProperties.IsInDesignTool)
{
    this.Visibility = Visibility.Hidden;
}
    
        IProvideAttributeTable AttributeTableBuilder ProvideMetadataAttribute 只需搜索这三个类,这就是我固定的方式。     

要回复问题请先登录注册