开发者

Problems hosting a WPF control in a windows form

I have a Winform application and want to to use WPF inside this application. I add a WPF user control to my VS project. Then I take a ElementHost control from the toolbox and put it on a form. After that I build the solution.

The problem is now, when I want to embed the WPF control with "Edit Host Content" into the Elemen开发者_StackOverflow中文版tHost controlI get the message "This ElementHost is currently not hosting any editable content....." What's wrong? How can I achieve (in VS) that the ElementHost control knows/references/hosts my WPF control ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜