如何在 Silverlight 4.0(浏览器外)中托管 HTML?
我必须在 Silverlight 4.0 中托管 HTML,仅适用于浏览器外应用程序。
我怎么做到这一点?
请给我解决方案。
I have to host HTML in Silverlight 4.0 Only for Out of Browser Application.
How i do that?
Please Give me Solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该注意,只有浏览器外应用程序支持 WebBrowser 控件,
如果您尝试在浏览器内应用程序中使用它,它不会显示任何内容。
因此,将此 WebBrowser 标记添加到您的 xaml 页面中。
或者如果你想使用html标签,你可以在后面的代码中使用WebBrowser类的属性NavigateToString;
you should note that only Out-of-Browser applications support the WebBrowser control,
and if you try to use it in an in-browser app, it will not display anything.
so add this WebBrowser tag to your xaml page.
or if you want to use a html tag ,you can use the property NavigateToString of WebBrowser Class in the code behind;