Dispose graphics device when panels are closed
Force child HWND to resize when WPF element is resized