我同意Otávio的看法。 另外,如果您创建一个子窗口,可以使用以下方法: WindowStartupLocation="CenterOwner" 但是你需要记得将子窗口的Owner属性设置为父窗口,否则子窗口无法正确居中。