HwndSource.Disposed Event


Occurs when the Dispose method is called on this object.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public event EventHandler Disposed

The Disposed event is raised before any resources are released by the HwndSource. The Disposed event indicates that the object that raises the event is about to have all references to it removed.

Use Disposed and the IsDisposed property to avoid calling Dispose twice (which raises an exception).

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft