RadWindow does not show in WPF app when VS Debugger.Break

2 posts, 0 answers
  1. suchan
    suchan avatar
    2 posts
    Member since:
    Apr 2009

    Posted 24 Mar Link to this post

    Hi!

    I had a trouble as the following.

    Simply make a WPF app and work fine with RadWindow.Alert('good').

    But, It freeze my app(nothing I can control, it just was frozen) when I have a breakpoint before showing radwindow. Could I fix it?

      private void button_Click(object sender, RoutedEventArgs e)
      {
       Debugger.Break();
       RadWindow.Alert("freeze");
      }

     

    Best regards

  2. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 28 Mar Link to this post

    Hello,

    The observed by you behavior is caused by the Alert itself. The Alert gets visualized as expected however, due to the break of the Debugger it comes below the MainWindow and because of that the MainWindow seems to freeze - notice that the predefined dialogs (such as RadAlert) are modal.

    So, in order to make it appear on top of the MainWindow you need to set the Owner of RadAlert to bet that MainWindow. Please, check the attached sample that demonstrates that approach.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top