是否可以从 WPF 应用程序托管 Silverlight 小部件?

发布于 2024-08-20 22:43:32 字数 155 浏览 3 评论 0原文

如果我想创建一些 Silverlight 小部件并将它们托管在 WPF 中,这可能吗?

我搜索过示例和;在网上找到了一些概念,但没有实际可行的方法/工作/和一堆死链接。

有没有人成功地做到了这一点关于如何做到这一点的任何想法?任何帮助表示赞赏。

If I wanted to create some Silverlight widgets and host them within WPF is this possible?

I've searched for examples & found a few concepts online but no approaches that actually panned out / work / and a bunch of dead links.

Has anyone successfully done this or any ideas for how to do this? Any help is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绝不放开 2024-08-27 22:43:32

您可以尝试我的 SilverlightViewport 项目。它允许在 WPF 中渲染 Silverlight 程序。应该支持 SL 的所有版本。

You can try my SilverlightViewport project. It allows for rendering Silverlight programs in WPF. Should support all versions of SL.

神魇的王 2024-08-27 22:43:32

最简单的方法是使用 WebBrowserControl。除此之外,我不知道。也许您可以解压缩 .XAP 文件并尝试加载您会找到的 XAML 和程序集。 ;-)

The brute approach would be using the WebBrowserControl. Other than that, I don't know. Maybe you could unzip the .XAP file and try to load the XAMLs and Assemblies you would find. ;-)

呆萌少年 2024-08-27 22:43:32

您在这些小部件中使用了哪些特定于 Silverlight 的功能?让它们在 Silverlight 和 WPF 中工作并编译 2 个版本是否存在真正的问题?

What features specific to Silverlight do you use in those widgets? Is there a real problem with making them work in both Silverlight and WPF and compiling 2 versions?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文