Tag Archives: depthColors

Alternating row colors in a Flex Tree control using the depthColors style

In a previous example, “Alternating row colors in a Flex Tree control using the alternatingItemColors style”, we saw how you can alternate row colors by setting the alternatingItemColors style.
The following example shows how you can alternate item colors based on the item’s depth in a Flex Tree control by setting the depthColors style to an array of colors.

Full code after the jump.

Continue reading Alternating row colors in a Flex Tree control using the depthColors style