protected override sealed void DestroyWindowOverride(HWND hwnd) { Debug.Assert(hwnd.DangerousGetHandle() == _hwndSource.Handle); _hwndSource.Dispose(); _hwndSource = null; }