I want to display a simple .SWF file on my WPF Form. It's a simple animation on loop.
Is there a control "box" type element I can place on my form and just load the .swf file to it so it can play?
Thank you for the help. :D
I want to display a simple .SWF file on my WPF Form. It's a simple animation on loop.
Is there a control "box" type element I can place on my form and just load the .swf file to it so it can play?
Thank you for the help. :D
You basically have to host it inside an html page and then reference the swf through the html page. On the WPF side you'll put a Frame xaml tag in your app that will refer to the html page.
Here's a link about how to do it.
Well - can you convert this animation into XAML? That would be the best.
WPF and Flash are not really compatible to each other :-)
It could work using the WebBrowser class - there's no elegant way I know, however.
A solution for a similar question can be found here: http://stackoverflow.com/questions/1439056/how-to-play-flash-in-wpf-application
In summary, you can use AXShockwaveFlash. Instructions found: http://www.pooredesign.com/blog/?p=d9165e80-d075-4faf-8a10-bfaf17769198
Also: although the description uses YouTube as an example this should work with local files as well.