Получите HWND для управления XAML в приложении Windows 8 (Metro)?

StackOverflow https://stackoverflow.com//questions/9629282

Вопрос

Мне нужно пройти HWND на родной DLL, которая собирается писать необработанное видео в рамку.В WPF это работает, потому что вы можете получить ссылку HWND от контроля.Это возможно в приложении Metro?

Это было полезно?

Решение

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