积极答复者
wpf 自定义window实现MessageBox的模态显示效果

问题
答案
-
你好,
可能还是要用以下这样的方法:
private void Button_Click(object sender, RoutedEventArgs e) { MainWindow newwindow = new MainWindow(); newwindow.Owner = this; newwindow.ShowDialog(); }
ShowDialog()能帮你做到这样的模态化的窗口。
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 skczjun 2014年11月19日 4:52
全部回复
-
你好,
可能还是要用以下这样的方法:
private void Button_Click(object sender, RoutedEventArgs e) { MainWindow newwindow = new MainWindow(); newwindow.Owner = this; newwindow.ShowDialog(); }
ShowDialog()能帮你做到这样的模态化的窗口。
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 skczjun 2014年11月19日 4:52
-
你好,
可能还是要用以下这样的方法:
private void Button_Click(object sender, RoutedEventArgs e) { MainWindow newwindow = new MainWindow(); newwindow.Owner = this; newwindow.ShowDialog(); }
ShowDialog()能帮你做到这样的模态化的窗口。
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.