网络浏览器有问题
我尝试检索 texblock 的内容并将其放入网络浏览器中以避免 html 内容:
desc1 是在页面之间导航时恢复的 OnNavigedTo 方法的变量 问题是我生成了这个异常: 无效操作异常 请帮忙 谢谢
var desc1 = NavigationContext.QueryString["desc"] as String;
BrowserControl.NavigateToString("<html>"+desc1+"</html>");
I'm try to retrieve the contents of a texblock and put it in a webbrower in order to avoid html content :
desc1 is a variable recovered OnNavigatedTo method when navigating between pages
the problem is that I generate this exception:
invalid ioerationexception
plz help
thank you
var desc1 = NavigationContext.QueryString["desc"] as String;
BrowserControl.NavigateToString("<html>"+desc1+"</html>");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我尝试了这个,这对我有用,
尝试为您的 desc1 设置一个变量,然后返回到 xaml 编辑器并为您的页面创建一个加载的事件处理程序,该处理程序将执行网络浏览器任务
I tried this and it this works for me,
try and set a variable to your desc1, then go back to the xaml editor and create a loaded event handler for your page which will do the webbrowser task