Ok, i got this very nice form stuff working in silverlight and now I am developing a simple message dialog system also for our business application.
What i would like to happen is that when you call for example "MessageBox.Show("Message")" the code does not continue on the calling method until you click ok on the silverlight control that shows the message.
Example:
if (some condition)
{
MessageBox.Show("Ooops");
DoSomething();
}
now MessageBox.Show creates a user control that displays the message.
but I don't want the code DoSomething() to execute until you click on a "OK" button on the ui displaying the message.
How can I put the system in a loop that will prevent the code on continueing with out locking the UI thread?