In my application I have a TabSplitter control with multiple tabs.
I want to prevent that the user closes a table while the editor contents is not saved.
I also want to prevent that the user closed the last tab. (and thereby closing the entire TabSplitter)
Is there a way to intercept the Close button and perform my own checks and cancel the close action if the checks fail?