A
Andy
Hi,
I'm trying to begin a new application in Wpf, and I'm trying to do
some similar things to what I have been in Wpf.
For example, in WinForms I have a base BusinessEditForm class. This
overrides OnClosing, which checks the CloseReason. If the reason is
anything other than ApplicationExit, I prompt the user if they would
like to save their changes if the business object being edited is
dirty.
I just let the window close if ApplicationExit is the reason, however,
because I only even call that method if a background thread determines
the I have locked out the application and all instances MUST exit
immediately.
I would like similar functionality in Wpf, but I can't figure out any
way to see if the user chose to close the window, or I've started a
shutdown.
Any ideas?
Thanks
Andy
I'm trying to begin a new application in Wpf, and I'm trying to do
some similar things to what I have been in Wpf.
For example, in WinForms I have a base BusinessEditForm class. This
overrides OnClosing, which checks the CloseReason. If the reason is
anything other than ApplicationExit, I prompt the user if they would
like to save their changes if the business object being edited is
dirty.
I just let the window close if ApplicationExit is the reason, however,
because I only even call that method if a background thread determines
the I have locked out the application and all instances MUST exit
immediately.
I would like similar functionality in Wpf, but I can't figure out any
way to see if the user chose to close the window, or I've started a
shutdown.
Any ideas?
Thanks
Andy