I'm trying to convert my old windows forms code into wpf. Each of my windows stored the visibility state, size and position and restored this states on the next run of the application. I connect to the FormCloseQuery event where it was possible to get information about the closereason. This is not possible in WPF.
I can store the position and size in the WPF forms' closing event, but it's not possible to store the visibility state.
Is there an answer how this can be done?
Thanks Martin