开发者

how to play a swf file in silverlight

开发者 https://www.devze.com 2023-01-04 08:22 出处:网络
how to play a swf file in silverlight applic开发者_运维百科ation project created in c#use below code

how to play a swf file in silverlight applic开发者_运维百科ation project created in c#


use below code

 <WebBrowser Grid.Row="1" VerticalAlignment="Top" Source="{Binding VodeoUrl,Mode=OneWay}" Height="280" Width="280"/>

in C# code :

eg. swf file url: http://xyz.net/evideos/tanzanite-01/7398a.swf or you can set local path also.

VodeoUrl = video[0].ToString();


You can host HTML (that embed the SWF file) in Silverlight by using WebBrowser control. But I think it should run in out-of-browser.


An SWF file is a file which can be played using Adobe Flash. It can not be played in Silverlight, or you have to pass it to Flash in some way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号