帮助我可以停止 wpf 网页浏览器弹出窗口吗?
有谁知道在 WPF 应用程序中使用 Web 浏览器控件时如何阻止弹出窗口发生?
Does anyone know how to stop a popup from happening when using a webbrowser control within a WPF application ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来源:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4d4fa88e-b8c8-4190-8153-db923ed0e24e/
Source:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4d4fa88e-b8c8-4190-8153-db923ed0e24e/
您只需选择 WindowsFormsHost 控件,进入构造函数并将 ScriptErrorsSuppressed 属性设置为 true 以阻止弹出窗口。
You could simply select the WindowsFormsHost control, go inside the Constructor and set the ScriptErrorsSuppressed property to true for Blocking Pop ups .