“Dialogs must be user-initiated.” with SaveFileDialog in Silverlight 3

前端 未结 5 1528
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 11:56

I am working on a Silverlight 3 app with C#. I would like to allow the user to download an image from the Silverlight app. I am using SaveFileDialog to perform the file down

5条回答
  •  猫巷女王i
    2020-12-10 12:31

    I just started on Silverlight 4 and had the same issue. It seems that if you manually create event handlers, the security exception is thrown, even if the event handler is handling a button click event with the correct parameters, but if you use the "create a new event handler" option on the button in Xaml under the click event, the new event handler, with the same code and parameters now works....this is one of the many "corky" things that I have come across since starting the transition from WPF to Silverlight.

提交回复
热议问题