简体   繁体   English

如何将WPF用户控件创建为dll,然后在另一个WPF应用程序中看到它?

[英]How can I create WPF User Control as dll and then see it in another WPF application?

我创建了WPF用户控制库模板,但是我不知道如何创建dll并将其用于另一个WPF应用程序。

In Visual Studio, Click File -> New -> Visual C# -> Class Library to create add dll project. 在Visual Studio中,单击文件->新建-> Visual C#->类库以创建添加dll项目。

Then, Right click the project and add WPF usercontrol. 然后,右键单击该项目并添加WPF用户控件。 Later build it and add the dll as reference to your WPF project and use it. 以后构建它,并添加dll作为对WPF项目的引用并使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将应用程序控制传递到另一个WPF窗口? - How can I pass application control to another WPF window? 如何构建可以在窗口之间拖放用户控件的 WPF 应用程序? - How do I build a WPF application where I can drag and drop a user control between windows? 如何在WPF应用程序的用户控件中放置Win32浮动窗口? - How can I position a Win32 floating window inside a user control in my WPF application? 我如何关闭从另一个用户控件的按钮中弹出的用户控件,单击WPF中的事件 - How i can Close User Control which were open in pop up from another User Control's button click Event in WPF 如何在WPF中使用数据绑定为列表中的每个元素创建新的用户控件? - How can I use data binding in WPF to create a new user control for each element in a list? 如何在WPF应用程序中动态添加用户控件? - How to add dynamically user control in wpf application? 如何创建WPF用户控件:自定义TabItem? - How to create WPF user control: custom TabItem? 如何对WPF用户控件的视图模型进行单元测试 - How can I unit test the view models of a WPF user control 如何将WPF控件动态地更改为另一个? - How I can dynamically change a WPF control into another? 在WPF中如何控制是否单击了另一个按钮 - In WPF how can I control whether another button clicked
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM