protected override void DestroyWindowCore(HandleRef hwnd)
        {
            if (_mediaWindow != null)
            {
                _mediaWindow.Dispose();
            }

            WindowsManagement.DestroyWindow(hwnd.Handle);
        }
        private void Dispose(bool disposing)
        {
            // no matter what, destroy the handle
            if (_hwnd != IntPtr.Zero)
            {
                System.Diagnostics.Debug.Assert(_procs.ContainsKey(_hwnd), "Handle wasn't found in the inernal collection.");
                _procs.Remove(_hwnd);
                System.Diagnostics.Debug.Assert(!_procs.ContainsKey(_hwnd), "Handle wasn't removed from the inernal collection.");

                WindowsManagement.DestroyWindow(_hwnd);
                _hwnd = IntPtr.Zero;
            }
        }
Esempio n. 3
0
 protected override void DestroyWindowCore(HandleRef hwnd)
 {
     WindowsManagement.DestroyWindow(hwnd.Handle);
 }