« Return to Thread: Having trouble getting IconView to work

Having trouble getting IconView to work

by vbtricks :: Rate this Message:

Reply to Author | View in Thread

Salut,

I am trying to initialize an IconView. In the MonoDevelop designer I added the IconView iconView1 to the window and did not modify any properties. In the code-behind file in the constructor I'm trying to initialize the ListStore:

private Gtk.ListStore store;

public MainWindow(): base(Gtk.WindowType.Toplevel)
{
  Build();
 
  this.store = new ListStore(typeof(string), typeof(string), typeof(string));
  this.store.AppendValues("1", "2", "3");
  this.iconview1.Model = this.store;
}

though, the IconView does not display anything. How to get a three columned IconView to work?


Thanks in advance,

Stefan

 « Return to Thread: Having trouble getting IconView to work