문제

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?

도움이 되었습니까?

해결책

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
                                                                           })));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top