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’
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’
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’
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’
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’
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’
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’
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’