Is it possible to somehow know when a UserControl is unloading and take some actions before it happens? I am assuming that the Unloaded even is fired after the control is unloaded.
I have a user control that can be unloaded at any time and I need to be able to run some code before it happens.
You can use the Unloaded event to be notified when a UI element is being unloaded.