.net - In Silverlight, how to invoke an operation on the Main Dispatch Thread? -


in winforms usercontrol, pass data main gui thread calling this.begininvoke() of control's methods. what's equivalent in silverlight usercontrol?

in other words, how can take data provided arbitrary worker thread , ensure gets processed on main displatch thread?

use dispatcher property on usercontrol class.

private void updatestatus() {   this.dispatcher.begininvoke( delegate { statuslabel.text = "updated"; }); } 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -