开发者

Can WPF/XBAP App be embedded in an HTML Page and call some javascript (like Flash does)

Can WPF/XBAP be 开发者_高级运维embeded like Flash which can either run directly as swf or as embedded in an html page and communicate with it by calling javascript.


I believe you can't do that with WPF/XBAP, you should take at Silverlight.

XBAP can run only in the browser but only "full page" with no html around it, non-XBAP WPF runs standalone only. Sliverlight can run as part of a page, I'm almost sure it can interact with javascript on the page and it can run "out of browser" (but not simply by double clicking on a file, you have to run it in a browser and have an "install" option in the app)


If someone is still trying to find solution for this: I wrote a blog post containing information how this can be properly done. There is lots of outdated information, but this solution works with latest browsers.

XBAP and Javascript with IE9 or newer

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜