Can WPF and WinForms be mixed within an application?

后端 未结 6 1034
粉色の甜心
粉色の甜心 2020-12-02 16:55

Can both WPF and Windows forms controls be used within one application? How difficult or practical an idea is this?

6条回答
  •  北海茫月
    2020-12-02 17:29

    I believe there is a WindowsFormsHost control you can put in your WPF apps which will do interop back to WinForms code:

    http://blogs.msdn.com/ivo_manolov/archive/2007/07/26/wpf-win32-interop-part-1-hosting-winforms-controls-in-wpf-windows.aspx

提交回复
热议问题