0

标题中的问题,如何在父级中心打开表单

Window win = new MyWPFWindow();

win.... ???
4

1 回答 1

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();
于 2012-07-05T11:18:00.293 回答