.net 4.6 和 4.7 已经出来了...仍然没有针对 wpf 托管经典 hwnd window 的空域修复?

.net 4.6 and 4.7 already out... still no airspace fix for wpf hosting classic hwnd window?

我在 WPF 应用程序中集成了 OpenSceneGraph。因此 OSG 在经典的 HWND 上呈现,并且在那个时候,.net 的早期版本在使用 hwndhost(如 winformshost)作为句柄时存在空域问题。因此,我被迫创建一些 "write backbuffer to image and display on bitmap in memory" 例程,因为位图可以很容易地与 wpf 集成,而不会出现空域问题。好吧,不是最快的,但有效...

不过,早前的.net 4.6有传闻有一个开关(IsRedirected,CompositionMode)可以开启,可以神奇的解决这个问题...遗憾的是,这个开关并没有出现在版本中4.6.

现在是否有一些更改或发布,其中包括解决互操作空域问题的解决方案?

.NET 4.5 beta 有此功能,但已被删除...

an earlier answer by Glenn Slayden 中关于类似问题所述,该功能 将不会包含在任何未来版本中:

Microsoft .NET Framework 4.5 Beta Readme

1.3.10 Windows Presentation Foundation (WPF)

1.3.10.1 HwndHost feature has been removed from WPF in the .NET Framework 4.5 Beta

The .NET Framework 4.5 Developer Preview included a WPF HwndHost redirection feature. However, this feature had several known issues and has been removed from the .NET Framework 4.5 Beta. It will not be included in any future releases.

To resolve this issue:

No workaround is available.