AutoToolboxPopulate=false无效,VS2010的BUG?
时间:2011-12-11
来源:互联网
在VS2010的菜单“工具”选项里,有个窗体设计器设置,工具箱AutoToolboxPopulate属性可控制是否将项目中自定义的控件添加到工具箱上,设置为false,则不添加。我现在就是不想让它自动添加,设置为false,但是对WPF的控件无效,项目中几百个WPF页面,每个页面都是继承Control,都被视为了控件添加到工具箱上,不但占地方,还影响速度,每次新增页面或修改页面,都会触发重新刷新工具箱的事件,导致VS操作很慢。
注:这个属性对WinForm控件的控制是有效的,只有WPF控件无效,这是VS2010的BUG吗?
欢迎测试吐槽,来者有分。
注:这个属性对WinForm控件的控制是有效的,只有WPF控件无效,这是VS2010的BUG吗?
欢迎测试吐槽,来者有分。
作者: qldsrx 发布时间: 2011-12-11
来了,我想知道winform控件,和wpf控件有啥区别
作者: bustersword 发布时间: 2011-12-11
你可以参考下这个帖子看能否解决你的问题
http://stackoverflow.com/questions/2725715/stop-silverlight-or-wpf-usercontrols-from-loading-in-the-toolbox
http://stackoverflow.com/questions/2725715/stop-silverlight-or-wpf-usercontrols-from-loading-in-the-toolbox
作者: net_lover 发布时间: 2011-12-11
In VS2010, the Auto Populate Toolbox switch for XAML can be found under Tools/Options/Text Editor/XAML/Miscellaneous.
If you wish to keep the Auto Populate enabled, you can decorate your usercontrol classes with the System.ComponentModel.DesignTimeVisibleAttribute which will allow you to specify if they appear or not in the designer.
That works - thanks! – chadbr Jul 28 '10 at 3:15
我粘贴过来了

作者: bustersword 发布时间: 2011-12-11
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28