Tag Archives: itemRenderer

Fading an item renderer background fill on a Spark List control in Flex 4

The following example shows how you can fade an item renderer background fill on a Spark List control in Flex 4 by creating a custom item renderer, setting the Boolean autoDrawBackground property to false, drawing your own background fill, and then setting a fade transition from the normal and hovered states.

Continue reading

Setting the text roll over color on a Spark DropDownList control in Flex 4

In a previous example, “Setting the text roll over color on a ComboBox control in Flex”, we saw how you could change the text roll over color for a Flex MX ComboBox control by setting the textRollOverColor style.

The following example shows how you can change the text roll over color in the Spark DropDownList control’s hovered and selected states by creating a custom item renderer and setting the color style.

Continue reading

Creating an item renderer with a corner radius on a Spark List control in Flex 4

The following example shows how you can create a custom item renderer with a corner radius on a Spark List control in Flex 4 by setting the cornerRadius property and creating a custom item renderer which sets its autoDrawBackground property to false and draws its own rounded background fill using the radiusX property in the hovered and selected states.

Continue reading