In wpf, is there a way to execute code before the control is unloaded...? like maybe an unloading event? In wpf, is there a way to execute code before the control is unloaded...? like maybe an unloading event? wpf wpf