Silverlight 4 中的确认框
我无法让以下代码在 FireFox (3.6.4) 中运行,但是,它在 Chrome (5.0.375.70) 和 IE (8.0.7600.16385) 中运行完美。
操作系统是Windows 7 32位。 Silverlight版本(4.0.50401.0)
System.Windows.Browser.HtmlPage.Window.Confirm("Are you sure you would like to Remove this?")
事实上,它不仅在FireFox中不起作用,而且还会弹出对话框,必须结束FireFox进程才能继续工作。还有其他人遇到过这个问题吗?有解决办法吗?
谢谢, 埃里克
I am having trouble getting the following code to work in FireFox (3.6.4), however, it works perfect in Chrome (5.0.375.70) and IE (8.0.7600.16385).
Operating system is Windows 7 32 Bit.
Silverlight Version(4.0.50401.0)
System.Windows.Browser.HtmlPage.Window.Confirm("Are you sure you would like to Remove this?")
As a matter of fact, it not only does not work in FireFox, but it pops up the dialog box, then you must end the FireFox process in order to continue working. Has anyone else had this issue? Is there a fix?
Thanks,
Eric
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我在 Firefox 中遇到了同样的问题,但您应该能够通过使用带有可选 MessageBoxButton.OKCancel 标志的 Silverlight 的 MessageBox 命令来解决这个问题。
Yes I had the same problem with Firefox but you should be able to get around it by using Silverlight's MessageBox command with the optional MessageBoxButton.OKCancel flag.