Pergunta

Eu preciso passar um HWND para uma dll nativa que vai escrever vídeo cru para o quadro.No WPF, isso funciona porque você pode obter uma referência HWND de um controle.Isso é possível em um aplicativo de metrô?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top