Prevent Ero.Forms.Dialog from Closing

Hi,
How can I prevent closing of the Dialog?

I am getting the following error when use ShowDialog:
Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed. System.InvalidOperationException: Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed

As I see WPF dialog has Cancel method that can be set to True in order to prevent closing. How to do it in Eto case?

Thanks,
Dmitriy

Tha

Hi @Dmitriy,

Having some sample code that we can run here would sure help.

– Dale