.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
Post a Comment