private void WindowShow()
{
var dbgWin = Application.Current.Windows.Cast<System.Windows.Window>().SingleOrDefault(w=>w.GetType().FullName.Contains("DebugWindow"));
var mainWindow = Application.Current.Windows.Cast<System.Windows.Window>().SingleOrDefault(w => w.GetType().FullName.Contains("MainWindow"));
dbgWin.Owner = mainWindow;//给子窗口认亲,才会弹出时不会躲在主窗口下面
dbgWin.Show();
}
子窗口弹出隐藏在父窗口下面的解决方法
最新推荐文章于 2024-11-14 08:46:29 发布