.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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -