标题中的问题,如何打开父母中心的表格
Window win = new MyWPFWindow();
win.... ???
答案 0 :(得分:1)
Window win = new MyWPFWindow();
win.WindowStartupLocation = WindowStartupLocation.CenterOwner;
// the "parent" needs to be another window; most likely, you can just use "this"
win.Owner = parent;
win.Show();