Added a method to center a WPF window on screen