【发布时间】:2014-06-17 20:47:02
【问题描述】:
我有必要创建 RadWindow.Alert,当我在应用程序之间切换或按 Tab+Alt 时,我看到这个 radwindow 被隐藏了。什么是解决方案?
【问题讨论】:
标签: .net wpf winforms mvvm telerik
我有必要创建 RadWindow.Alert,当我在应用程序之间切换或按 Tab+Alt 时,我看到这个 radwindow 被隐藏了。什么是解决方案?
【问题讨论】:
标签: .net wpf winforms mvvm telerik
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
})));
【讨论】: