把WPF控件到Windows窗体窗体窗体、控件、WPF、Windows

由网友(这世界从不欣赏眼泪)分享简介:你怎么把一个WPF控件到Windows窗体的形式?很可能我会被插入我的WPF控件到Windows.Forms.Panel。 How do you put a WPF control into a Windows Forms Form? Most likely I will be inserting my WPF co...

你怎么把一个WPF控件到Windows窗体的形式?很可能我会被插入我的WPF控件到Windows.Forms.Panel。

How do you put a WPF control into a Windows Forms Form? Most likely I will be inserting my WPF control into a Windows.Forms.Panel.

推荐答案

把一个ElementHost控制面板内。那么这种控制可以承载一个WPF元素。从的WinForms设计师,你可以找到在WPF互操作性这种控制。

Put an ElementHost control inside the panel. This control can then host a WPF element. From the WinForms designer, you can find this control under 'WPF Interoperability'.

有关示例,请参见演练:中承载WPF复合控件在Windows窗体

阅读全文

相关推荐

最新文章