{//此程序实现窗体居中显示
Window1 myWindow1 = new Window1();
double screeHeight = SystemParameters.FullPrimaryScreenHeight;
double screeWidth = SystemParameters.FullPrimaryScreenWidth;
myWindow1.Top = (screeHeight - this.Height) / 2;
myWindow1.Left = (screeWidth - this.Height) / 2;
myWindow1.Show();
}