有谁知道Microsoft默认WPF控件如何加载到Visual Studio的工具箱中?
当在 Visual Studio 的设计视图中打开 WPF 窗口时,“工具箱”窗格会自动将 WPF 控件加载到“通用 WPF 控件”选项卡和“所有 WPF 控件”选项卡中。
有谁知道 Visual Studio 是如何做到这一点的?
When the WPF window is opened in design view in Visual Studio, the Toolbox pane automatically loads WPF controls into "Common WPF Controls" tab and "All WPF Controls" tab.
Does anyone know how Visual Studio does this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎它们将通过项目引用或右键单击拍摄框并选择“选择项目...”时保存的(更有可能)用户选项来加载。
我想象在某个地方,有一个设置,默认情况下,当 XAML 页面打开时,它会将 System.Windows.Controls 中的一堆项目加载到工具箱中。如果需要,您可以取消选择那些不需要的项目,并将不同的项目放入工具箱中
Seems like they would be loaded through either the Project References or the (more likely) user options saved when you rightclick on the tookbox and choose "Choose Items...".
I would imagine that somewhere, there is a setting where by default when a XAML page is open, it loads a bunch of items in System.Windows.Controls into the Toolbox. If you want, you can deselect those items you dont want, and put different items in the toolbox