WPF,Flash和空域 [英] WPF, Flash and Airspace

查看:71
本文介绍了WPF,Flash和空域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人尝试尝试解决空域问题在WPF应用程序中播放Flash(SWF)电影?我已经能够使用WinForms控件和WindowsFormsHost元素以及WebBrowser元素来播放swf文件,但是两者都存在空域问题.

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.

推荐答案

这完全取决于您要执行的操作,但我成功使用了透明的叠加窗口.

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

  1. 跟踪基础窗口的位置并相应地更新覆盖窗口的位置.
  2. 确保使用最小化/还原/最大化模式更新覆盖窗口.
  3. 将叠加层窗口的背景"设置为透明",将AllowsTransparency设置为true.

有点麻烦,但还算不错.

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

这篇关于WPF,Flash和空域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆