I'm building an app and I want to prevent the window from being closed if the user presses "X" to close the window. To my knowledge, "On Close" only allows me to handle what goes on when the window is closed. I can't cancel the window close event.
Please help me find documentation or a solution to this. Thanks in advance!