Question

I have a necessity of creating RadWindow.Alert and I am seeing this radwindow gets hidden when I switched between apps or press Tab+Alt .What is solution?

Was it helpful?

Solution

var topWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(win => win.Topmost);

Application.Current.Dispatcher.BeginInvoke(new Action(() => RadWindow.Alert(new DialogParameters
                                                                           {
                                                                               Content = "write your comment",
                                                                               Header = "type header here",
                                                                               DialogStartupLocation = WindowStartupLocation.Manual,
                                                                               Left = targetX,
                                                                               Top = targetY,
                                                                               Owner = topWindow ?? Application.Current.MainWindow
                                                                           })));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top