Ejemplo n.º 1
0
        public ListViewDialog()
        {
            Title         = "Gtk List View Box Dialog";
            WidthRequest  = 500;
            HeightRequest = 400;

            var vbox = new HBox();

            VBox.PackStart(vbox);

            listView = new TreeView();
            listView.HeadersVisible = false;
            vbox.PackStart(listView);

            listStore      = new ListStore(typeof(string));
            listView.Model = listStore;

            cellView = new CustomRenderer();
            var column = new TreeViewColumn("test", cellView);

            listView.AppendColumn(column);

            AddItems();

            ShowAll();
        }
Ejemplo n.º 2
0
		public ListViewDialog ()
		{
			Title = "Gtk List View Box Dialog";
			WidthRequest = 500;
			HeightRequest = 400;

			var vbox = new HBox ();
			VBox.PackStart (vbox);

			listView = new TreeView ();
			listView.HeadersVisible = false;
			vbox.PackStart (listView);

			listStore = new ListStore (typeof(string));
			listView.Model = listStore;

			cellView = new CustomRenderer ();
			var column = new TreeViewColumn ("test", cellView);
			listView.AppendColumn (column);

			AddItems ();

			ShowAll ();
		}