1
如何設置alpah顏色了alternatingRowColors在柔性4.6火花的DataGrid軟硬度:阿爾法了alternatingRowColors顏色
答:
TNX到www.Flextras.com我發現:
在DataGrid皮膚需要重寫prepareGridVisualElement
這樣的:
public function prepareGridVisualElement(grid:Grid, rowIndex:int, columnIndex:int):void
{
const dataGrid:DataGrid = grid.dataGrid;
if (!dataGrid)
return;
const colors:Array = dataGrid.getStyle("alternatingRowColors");
rowBackgroundFillColor.alpha = rowIndex % 2 == 0 ? 0 : 0.25;
}