WPF, Flash and Airspace

╄→尐↘猪︶ㄣ 提交于 2019-12-13 02:17:43

问题


Has anyone been able to solve the airspace issues when trying to play a flash (swf) movie in a WPF application? I've been able to play the swf file using a WinForms control and a WindowsFormsHost element, and also using the WebBrowser element - but both have the airspace issues.


回答1:


It depends on exactly what you're trying to do but I've used a transparent overlay window with success.

  1. Track the underlying window's location and update the overlay window's position accordingly.
  2. Ensure that you update the overlay window with minimize/restore/maximize modes.
  3. Set the overlay window's Background to Transparent and the AllowsTransparency to true.

It's a bit of a hassle but not too bad.



来源:https://stackoverflow.com/questions/958046/wpf-flash-and-airspace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!