Gtk.Window.Modal Property
Sets or obtains the modal status of window.

Syntax

[GLib.Property("modal")]
public bool Modal { set; get; }

Value

true if the window is set to be modal and establishes a grab when shown.

Remarks

Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use Window.TransientFor to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent.

There are two status: modal (true) and non-modal (false).

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)