I need to pass a hwnd to a native dll that is going to write raw video to the frame. In WPF this works because you can get a hwnd reference from a control. Is this possible in a Metro app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.