GET HWND per XAML Control in app Windows 8 (Metro)?
-
09-12-2019 - |
Domanda
Ho bisogno di passare un HWnd a una DLL nativa che scriverà video raw sul telaio.In WPF questo funziona perché è possibile ottenere un riferimento HWnd da un controllo.È possibile in un'app metropolitana?
Soluzione
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow