This is a migrated thread and some comments may be shown as answers.

Any good solution for Confirm or Alert window from BackgroundWorker thread?

1 Answer 61 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jihong
Top achievements
Rank 1
Jihong asked on 05 Jan 2011, 03:35 AM
Sometime, I need show alert or confirmation window from BackgroundWorker thread. It looks RadWindow is a UI control and cannot call in another thread. While MessageBox.Show() also will be hide by main window sometime.

Are there any good solution for this senario?

Thanks.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 07 Jan 2011, 04:52 PM
Hello Jihong,

I would suggest you to use Dispatcher. For example:

Dispatcher.BeginInvoke(() =>
                {
                    (new RadWindow()).Show();
                });

I hope this helps. 

Kind regards,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Window
Asked by
Jihong
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or