سؤال

أحتاج إلى تمرير 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