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

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

1 Answer 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
suchan
Top achievements
Rank 1
suchan asked on 24 Mar 2016, 06:50 AM

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

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 28 Mar 2016, 05:56 AM
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.
Tags
Window
Asked by
suchan
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or