UnauthorizedAccessException: Invalid cross-thread access in Silverlight application (XAML/C#)

后端 未结 3 1985
情书的邮戳
情书的邮戳 2020-12-18 22:55

Relatively new to C# and wanted to try playing around with some third party web service API\'s with it.

Here is the XAML code

    

        
3条回答
  •  既然无缘
    2020-12-18 23:42

    As you guessed, silverlight executes all web request asynchronously on a separated thread to avoid freezing the UI.

    To dispatch messages to the UI thread you can use the Deployment.Current.Dispatcher.BeginInvoke(delegate, object[]) method.

提交回复
热议问题