I have a user control and this control is drag-dropped on a window. When this window gets closed, the user control's "Unloaded" event gets fired. I want to override this event in user control (or any other event which gets fired on window close) as i want to write some logic in it before it calls the base.Unloaded event.
The problem is there is no override for "Unloaded" event like "OnUnloaded" in user control.
Is there any other event other than "Unloaded" which gets fired when window closes and that can be overriden?