When the DeleteEvent is called by a Gtk# window, how can I prevent the window from closing? -


When the window is closed, the user is asked to save the file that he has edited. They should also have an option to cancel the application.

In WPF, I can set CancelEventArgs. To do this, cancel the correct assets. Is there an equivalent / solution in Gtk #?

You do not have DeleteEventArgs.RetVal True , not incorrect from:

To turn off Gtk.Window , set the Gtk.DeleteEventHandler 's Gtk.DeleteEventArgs.RetVal to < Code> true .


Comments