I checked the Mono Documentation and saw two interesting properties for
TreeViews: EvenRowColor and OddRowColor. The only problem is, that both of
them are read-only and I found no methods to change their values. I'm sure
that the developers of GTK# didn't forget these methods by chance. They
probably had a reason to left these methods out.

2008/4/27 Chris Howie <[EMAIL PROTECTED]>:

On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard <[EMAIL PROTECTED]>
> wrote:
> > I think this is appropriate material for this list. I'm trying to have a
> > TreeView with a ListStore have rows that are different colors. I'm
> pretty
> > sure it's possible, because it looks like it's the case with MonoDevelop
> and
> > User Tasks/Comments. The question is, how?
> >
> > (Point of clarity: First row be red, second row be green -- that's all.
> I
> > guess more generally, how do you control the row color as opposed to the
> > column color)
> >
> > Thanks!
>
> That would be controlled by the GTK+ theme selected by the user.
> Unless you have a really, really, *REALLY* good reason to decide not
> to honor the user's preferences, you should just stick with the
> default.
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> _______________________________________________
> Gtk-sharp-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to