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

2 posts, 0 answers
  1. Jihong
    Jihong avatar
    7 posts
    Member since:
    Aug 2010

    Posted 04 Jan 2011 Link to this post

    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?

  2. George
    George avatar
    1332 posts

    Posted 07 Jan 2011 Link to this post

    Hello Jihong,

    I would suggest you to use Dispatcher. For example:

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

    I hope this helps. 

    Kind regards,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
Back to Top