What is the use of Deployment.Current.Dispatcher.BeginInvoke( ()=> {…} )?

后端 未结 3 954
一个人的身影
一个人的身影 2020-12-15 18:53

I have seen this Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} ) format in some code .Is it used to do some work in Background?What are the general uses of it?

3条回答
  •  爱一瞬间的悲伤
    2020-12-15 19:51

    you'll need to use Deployment.Current.Dispatcher in a SilverLight application when you find yourself doing work in a non UI worker thread (within a context that does not inherit from DependencyObject) and you need to update the UI.

提交回复
热议问题