wpf - How System.Windows.Threading.Dispatcher in the main UI thread is accessible from other threads? -
I have read that we can not access anything in the main UI thread in the Silverlight application from other worker threads.
So it is possible to use an object of class system. Windows threading. Dispatcher that is linked to other worker threads from the main UI thread when we want to do some work on the user interface?
Public Partial Class Dispatcher Example: User Control [Public Zero] AnyFunctionExecutingInSomeOtherThread () {this.Dispatcher.BeginInvoke (SomeDelegate); }}
A dispatcher
example accessed from any Thread can be because this thread is not related, if this thread is related, then it will be essentially useless because its main reason is to transmit messages from any thread to the right thread.
Comments
Post a Comment