title: Window StateChanging event in WPF
body: <p>I need to handle WPF application right before it goes Minimize, not when it's already there.
  I found on Window object StateChanged, but it fires when Window object is already in Minimize state, then it's too late.</p>
  
  <p>So, I need something like "StateChanging" event to handle, while Window object is still in previous state.</p>
  
  <p>Is it possible to create such event ?</p>