Dialogs must be user-initiated. Silverlight

柔情痞子 提交于 2020-01-11 09:44:49

问题


I have read almost all SO threads about this error. What i found is that Openfiledialog must be the first line of Button Click Handler in code behind file of your view.

I have done this but still i got this error on random.

Dialogs must be user-initiated.

at System.Windows.Controls.OpenFileDialog.ShowDialog()
at Portal.Presentation.SL.Views.AddEditPatient.Button_Click(Object sender, RoutedEventArgs e)

any pointers? I am using silverlight 4

Regards.

来源:https://stackoverflow.com/questions/10105197/dialogs-must-be-user-initiated-silverlight

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!