WP7 中 DesignTimeVisibleAttribute 和 ToolBoxItemAttribute 的等效项是什么?
WP7 中 DesignTimeVisibleAttribute 和 ToolBoxItemAttribute 的等效项是什么?
我们可以在设计时使用这两个属性来显示/隐藏某个控件,但是WP7的FCL不包含它们。
替代解决方案是什么?
谢谢
简而言之:如何从 Visual Studio 的工具箱中隐藏 WP7 自定义控件?
What are the equivalents for DesignTimeVisibleAttribute and ToolBoxItemAttribute in WP7?
We can use those two attributes to show/hide a certain control in design time, but the WP7's FCL does not include them.
What is the alternative solution?
Thanks
In short terms: how to hide a WP7 custom control from the toolbox of Visual Studio??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试将此代码放入自定义控件的构造函数中:
You could try putting this code in the constructor of your custom control:
IProvideAttributeTable
AttributeTableBuilder
ProvideMetadataAttribute
只需搜索这三个类,这就是我修复它的方法。
IProvideAttributeTable
AttributeTableBuilder
ProvideMetadataAttribute
Just search for these three classes, that's how I fixed it.