在WPF中运行Flash(.swf)文件问题 [英] Running a flash (.swf) file In Wpf problems

查看:119
本文介绍了在WPF中运行Flash(.swf)文件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须以这样的方式设计一个wpf窗口,即以Flash(.swf)为背景,在它上面我需要放置两个透明按钮,其中一个必须覆盖整个屏幕,而另一个则必须覆盖整个屏幕.放在左上角.

I have to design a wpf window in such a way that there is a flash (.swf) as a background and above it i need to place two transparent buttons one of which has to cover the whole screen and other has to be placed at the left top corner.

 

 

现在的问题是由于航空航天问题引起的,闪光灯在前面,所有按钮或其他按钮似乎在后台.

Now the problem is due to aerospace problem the flash is comming at the front and all the buttons or else seems to be in the background.

我使用zindexes将按钮置于最前面,但根本不起作用.

i used zindexes to bring buttons at the front but it does not works at all.

 我的代码是->

 my code is-->

<

 

画布

Canvas>
 

< 名称 =主机">
< ax AxShockwaveFlash ="ctrl"电影="C \ couner.swf">
</ ax AxShockwaveFlash </ WindowsFormsHost

<WindowsFormsHost Name="host">
<ax:AxShockwaveFlash Name="ctrl" Movie="C\couner.swf">
</ax:AxShockwaveFlash>
</WindowsFormsHost>

< 按钮 =" BtnConsumer" 点击 =" button1_Click" Panel.ZIndex ="1" Canvas.Top ="0" ="0" 不透明度 ="0"; 不透明度 ="0" 背景 =透明"; BorderBrush =透明" > < / 按钮 按钮 名称 =&; GoToAdminButton"" ="1" 不透明度 ="0" 背景 =透明" =透明" 填充 ="-4"   点击 =" gotoAdminButton_Click; Canvas.Top ="20" Canvas.Left ="20"   ></ >

<Button Name="BtnConsumer" Click="button1_Click" Panel.ZIndex="1" Canvas.Top="0" Canvas.Left="0" Opacity="0" Opacity="0" Background="Transparent" BorderBrush="Transparent"> </Button>

<
Button Name="GoToAdminButton" Panel.ZIndex="1" Opacity="0" Background="Transparent" BorderBrush="Transparent" Padding="-4" Click="gotoAdminButton_Click" Canvas.Top="20" Canvas.Left="20" ></Button>

 < /

 </Canvas 

 

 

这三个控件的尺寸均已通过后面的代码指定为适合屏幕尺寸.

Sizes for all the three controls have been specified through code behind to fit on the screen. 

如果您有任何解决方案,请任何人帮助我.

Please anybody help me if you have any solution.

推荐答案

我认为您不能在ActiveX控件之上拥有WPF控件. ActiveX控件将始终位于所有WPF内容的顶部.

I don't think you can have WPF Controls above ActiveX control. ActiveX controls will always be on top of all WPF content.

下面的链接包含可能对您有帮助的解决方案.

Following link contain possible solution which may help you.

http://social.msdn.microsoft.com/forums/zh-CN/wpf/thread/9b08ea62-b94c-420a-ac68-4cb1d9cf5a71


这篇关于在WPF中运行Flash(.swf)文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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