Prevent a user control from closing WPF C#
<p>I have an application in which a user fills out a form, if the user doesn't press save and loads another control/button i need to stop the user leaving and destroying the user control. There isn't a Closing event on a User Control. i tried Unloaded but this has already disconnected from the visual tree. 
Do i have to have to create variables throughout to check? 
is there an event to use for this situation?</p>

<p><strong>Update</strong></p>

<p>So i have one window for the application and many user controls load in a grid, for example if a client press contact then a new contact user control will occur as a child of the window. If the user hasn't pressed save i want the user control to not be removed and prompt a message. Hope that explains a bit more.</p>