protected override bool OnExposeEvent(EventExpose evnt) { bool res = base.OnExposeEvent(evnt); cell.Initialize(this, em, property, obj); Gdk.Rectangle rect = Allocation; rect.Inflate(-3, 0); // Add some margin cell.Render(this.GdkWindow, rect, StateType.Normal); return(res); }
void PropertyData(Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter) { CellRendererProperty rc = (CellRendererProperty)cell; bool group = (bool)model.GetValue(iter, 2); if (group) { rc.SetData(null, null, null); } else { PropertyDescriptor prop = (PropertyDescriptor)model.GetValue(iter, 1); PropertyEditorCell propCell = editorManager.GetEditor(prop); InstanceData idata = (InstanceData)model.GetValue(iter, 3); propCell.Initialize(tree, editorManager, prop, idata.Instance); rc.SetData(idata.Instance, prop, propCell); } }