I have a WPF C # application that needs to be saved when closing. Window close / close events work fine if the user closes the program, but they are not called if the user logs out / shuts down the computer.
I found ways to catch this event in winforms programs ( here and here ). but I cannot figure out how to do this in a WPF application.
I try to stop the stop until my program is ready to exit
c # wpf wndproc
zaza
source share