int centerX = this.Size.Width / 2 - homeWindow.Size.Width / 2; int centerY = this.Size.Height / 2 - homeWindow.Size.Height / 2;