如何动态加载自定义工具窗口中的程序集的用户控件 [英] How to load the user controls of assemblies in custom tool window dynamically

查看:60
本文介绍了如何动态加载自定义工具窗口中的程序集的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好, 

Hi Everyone, 

目前我正在通过自定义工具窗口为我的控件组件开发自定义工具箱Visual Studio扩展。我已经创建了自定义工具窗口项目。

Currently I am developing the custom tool box for my controls assemblies through the Custom Tool Window Visual Studio Extension. I have create the custom tool window project.

我需要在自定义工具窗口中显示我的控件,就像默认的Microsoft工具箱行为一样。我试过了,但我做不到。

I need to show my controls in my custom tool window like default Microsoft toolbox behavior. I have tried, but I can't.

您能否建议将程序集中的控件加载到此工具箱中?

can you please suggest the idea to load the controls from assemblies into this toolbox?

谢谢,

Ganesan R。

Ganesan R.

推荐答案

您好Ganesan,

Hi Ganesan,

当您在项目中添加自定义工具窗口项时,项目中将有xaml项,您可以在XAML文件中显示您的控件,属于到WPF。

When you add a custom tool window item in your project, there will has xaml item in your project, you could show your controls in XAML file, which belong to WPF.

祝你好运,

张龙


这篇关于如何动态加载自定义工具窗口中的程序集的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆