开发者

Confirm dialog from silverlight crashes firefox

开发者 https://www.devze.com 2023-01-16 14:59 出处:网络
I\'ve found some strange behaviour of firefox 3.6 - when I call HtmlPage.Window.Confirm() method from my silverlight 3 app it crashes the browser. This behaviour, I think, begins from the version when

I've found some strange behaviour of firefox 3.6 - when I call HtmlPage.Window.Confirm() method from my silverlight 3 app it crashes the browser. This behaviour, I think, begins from the version when plugin container became separate proce开发者_如何学运维ss. Maybe it is cross-thread issue of firefox.

Did anybody face this problem?

Thanks a lot.


Setting param windowless to true in most cases helps to fix this problem.


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.

MessageBox.Show("Are you sure?", "Warning", MessageBoxButton.OKCancel);
0

精彩评论

暂无评论...
验证码 换一张
取 消