wpf 使窗口打开在屏幕中央

 WindowStartupLocation="CenterScreen"

添加此段代码即可

posted @ 2024-10-07 16:50  长安626  阅读(107)  评论(0)    收藏  举报