Tag Archive for 'alternatingitemcolors'

10
Aug

Alternating tile background colors for items in a TileList control in Flex

The following example shows how you can set alternating background colors for tiles in a Flex TileList control by setting the alternatingItemColors style using MXML, CSS or ActionScript.

Full code after the jump.

Continue reading ‘Alternating tile background colors for items in a TileList control in Flex’

06
Mar

Setting the background alpha and background color of a DataGrid control in Flex

The following example shows how you can set the background alpha and background color of a Flex DataGrid control by setting the backgroundAlpha and backgroundColor styles.

Full code after the jump.

Continue reading ‘Setting the background alpha and background color of a DataGrid control in Flex’

24
Jan

Setting alternating item colors on a Flex PopUpButton control

The following example shows how you can set alternating item colors on a PopUpButton control in Flex by setting the popUpStyleName and alternatingItemColors styles.

Full code after the jump.

Continue reading ‘Setting alternating item colors on a Flex PopUpButton control’

04
Jan

Setting alternating colors on a Flex HorizontalList control

The following example shows how you can alternate item colors in a HorizontalList control in Flex by setting the alternatingItemColors style.

Full code after the jump.

Continue reading ‘Setting alternating colors on a Flex HorizontalList control’

19
Dec

Alternating item colors in ComboBox dropdown

The following example shows how you can set alternating item/row colors in a ComboBox control’s dropdown menu by setting the alternatingItemColors style using MXML, ActionScript or CSS

Full code after the jump.

Continue reading ‘Alternating item colors in ComboBox dropdown’

27
Nov

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

The following example shows how you can alternate item colors in a Flex Tree control by setting the alternatingItemColors style to an array of colors.

Full code after the jump.

Continue reading ‘Alternating row colors in a Flex Tree control using the alternatingItemColors style’

31
Aug

Creating a Flex DataGrid control with a transparent background

The following example demonstrates how you can create a Flex DataGrid control with a transparent background by setting the backgroundAlpha style to 0.0, and the alternatingItemColors style to an empty array.

Full code after the jump.

Continue reading ‘Creating a Flex DataGrid control with a transparent background’

17
Aug

Alternating row colors in a Flex List control

The following example shows how you can alternate row colors in a List control using the alternatingItemColors style.

Full code after the jump

Continue reading ‘Alternating row colors in a Flex List control’

23
Jul

Toggling a DataGrid control’s horizontal grid lines and vertical grid lines

OK, this is a pretty neat trick. Flex makes it pretty easy to customize the look and feel of the DataGrid. For example, the following code lets you toggle the data grid’s horizontalGridLines and verticalGridLines styles on or off, change the alternating row background colors so each row is a plain white, and sets the horizontalGridLineColor and verticalGridLineColor styles to red.

Full code after the jump.

Continue reading ‘Toggling a DataGrid control’s horizontal grid lines and vertical grid lines’