我需要将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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top