Gtk.Window Class
Toplevel widget which can contain other widgets.

C# Example

using System;
using Gtk;

class WindowTester {
	static void Main ()
	{
		Application.Init ();
		Window myWindow = new Window ("This is a window");
		myWindow.DeleteEvent += OnDelete;
		myWindow.SetDefaultSize (200, 200);

		//Put a button in the Window
		Button button = new Button ("Click");
		myWindow.Add (button);
		myWindow.ShowAll ();
		Application.Run ();
	}

	static void OnDelete (object o, DeleteEventArgs e)
	{
		Application.Quit ();
	}	
}
  

See Also: Window Members

Syntax

public class Window : Bin

Remarks

Toplevel widget which can contain other widgets.

Requirements

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