问题
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.
- Track the underlying window's location and update the overlay window's position accordingly.
- Ensure that you update the overlay window with minimize/restore/maximize modes.
- 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