Wpf窗口设置屏幕居中最前显示 public Window() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; this.Topmost = true; }