private void CenterChildWindow() { if( ( _parentContainer != null ) && ( _windowRoot != null ) ) { Left = ( _parentContainer.ActualWidth - _windowRoot.ActualWidth ) / 2.0; Top = ( _parentContainer.ActualHeight - _windowRoot.ActualHeight ) / 2.0; } }