Windows 8(Metro)アプリでXAMLコントロールのためにHWNDを入手しましょうか。

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

質問

RAWビデオをフレームに書き込むつもりのネイティブDLLにHWNDを渡す必要があります。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