Can I create a ActiveX Control from a WPF UserControl and use in a non CLI C++ application?

谁说我不能喝 提交于 2019-12-04 04:49:24

Yes, I think ElementHost is the approach you will need to use if there is a chance of this working.

This is because WPF controls are inherently windowless with everything being rendered in retained mode via a DirectX surface which WPF maanges.

There are interfaces for "windowless" ActiveX controls but the COM interop provided by .NET does not map these onto WPF objects either.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!