Silverlight – Access UI from code Asynchronously

System.Windows.Threading Namespace provides classes that support the Silverlight threading system.
Dispatcher Class provides services for managing the queue of work items for a thread.

Dispatcher.BeginInvoke Method (Action) executes the specified delegate asynchronously on the thread the Dispatcher is associated with.


Dispatcher.BeginInvoke(() =>
    MessageBox.Show("Member Number does not exist in the system.");
    this.memberNumberTextBox.Text = string.Empty;


Author: Indika Abayarathne

MSc in IT [University of Colombo] Solutions Architect | Consultant Technologies: Power Platform | Dynamics CE | Azure

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: