Suppose I want to prompt my user for exit confirmation when double clicking on the application button but not when they click the X or press Alt+F4. How would I detect which button was pressed in the closing handler? Can we make the sender be the application button somehow? Or can I add my own event to the application button double click?
It seems a little weird to me that a single click shows the ApplicationPopup and a double click shows the ApplicationPopup and then exits. I'd rather not show the popup or hide it really quickly in the case where the application button is double clicked. Actually, I'd like to make it so that double clicking the application button doesn't exit, but I've got a feeling that will be against MS's spec.