在windowform窗口项目里怎么添加wpf控件啊,还有下面这个谁能帮我看看错在 哪

usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Da... using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Visifire.Charts;using Visifire.Commons;using System.Windows.Forms.Integration;namespace WindowsZhuzhuangtu{ public partial class Form1 : Form { public Form1() { InitializeComponent(); //CreateChart(); //Create a WPF Button System.Windows.Controls.Button btn = new System.Windows.Controls.Button(); btn.Content = "Button in WPF"; // Add it to ElementHost ElementHost.Child = btn; } 展开
 我来答
雪V歌
2018-01-02 · 知道合伙人数码行家
雪V歌
知道合伙人数码行家
采纳数:78696 获赞数:222915
泉州兴瑞发公司2015-2017最佳优秀员工。

向TA提问 私信TA
展开全部
不能这样的吧。类库就是类的集合而已。
你在 解决方案里添加 新建项目--wpf。
然后 类库和这个wpf是 平行的关系,你给该wpf添加对类库的引用,然后就可以使用该类库里的类了。就这样。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式