How to put a custom windows forms control in a WPF application?

前端 未结 3 1257
不思量自难忘°
不思量自难忘° 2021-01-01 02:18

As a short term solution I\'m trying to jam a windows form \'usercontrol\' into a WPF application. I see in the WPF application view that I can add a \'custom windows form

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-01 02:34

    Lucas' answer is correct, but I wanted to add something needed. If you are creating a web application, then you must change the Security setting to This is a full trust application. I could not get the WindowsFormsHost control to work prior to doing this.

提交回复
热议问题