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 に答える