在Windows 8(Metro)应用程序中获取XAML控件的HWND?
-
09-12-2019 - |
题
我需要将hwnd传递给一个要将原始视频写入帧的本机DLL。在WPF中,这是因为您可以从控制中获取HWND参考。在地铁应用程序中是可能的吗?
解决方案
It is not possible to get HWND for a control, because Metro doesn't have HWNDs.
If you can get the video stream, try using a video brush and setting the source. Otherwise, look into SharpDx library, which is a managed port of DirectX. I think you can draw 'stuff' to an element from it.
Hope this helps.
不隶属于 StackOverflow