drawingbrush

Super Fast alternating row colors in a ListBox

Super Fast alternating row colors in a ListBox

One of the applications we are building required a ListBox control that displayed a bunch of contacts. We also wanted to make the rows in the ListBox have alternating row colors, just like the figure below:   Our first guess was to use an ItemTemplateSelector. Inside the selector we would check the index of the [...]