c# WPF 应用程序在屏幕上居中显示

xaml

<Window ... WindowStartupLocation="CenterScreen">