I am calling RadWindow's Alert in the following code.
Even though it transfers control to the main window of the program, it disappears if you do not click the OK button after showing it for a while.
And I can't click the confirmation button anymore.
call.cs
AlertWindow.Alert(ret.Error.UserMessage);
alertWindow.cs
public class AlertWindow
{ public static void Alert(string msg, string header=null, ILog log = null, ContentControl contentControl=null) { if (header == null) header = "title"; if (contentControl == null) contentControl = Application.Current.Windows.Cast<Window>().FirstOrDefault(win => win.Topmost); Telerik.Windows.Controls.RadWindow.Alert(new Telerik.Windows.Controls.DialogParameters { Content = msg, Header = header, OkButtonContent = MulBangUl.Resources.Localization.CommonResources.CmdConfirm, Owner = contentControl }); if (log != null) log.Info(msg); }}
