Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1690
Prompt before xamDialogWindow unloaded
posted

Hi,

We have WPF application which uses xamDialogWindow as a base class for MDI-like interface. I would like to prompt user on exit when some changes made on a screen are not saved. I understand I can't do it on Unloaded event because I cannot cancel the event and return back to the dialog. I tried to use LostFocus but it also doesn't work i.e. works for any LostFocus event on dialog window... Is it possible to catch the event before Unloaded and cancel it if it's necessary ?

Thanks,

Ed