你應該看mx.skins.spark.DataGridHeaderBackgroundSkin
像這樣的東西應該做的伎倆:
<?xml version="1.0" encoding="utf-8"?>
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
minWidth="21" minHeight="19">
<fx:Script>
/**
* @private
*/
override protected function initializationComplete():void
{
useChromeColor = true;
super.initializationComplete();
}
</fx:Script>
<s:Rect left="0" right="0" top="0" bottom="0" alpha="0">
</s:Rect>
<s:Rect left="0" right="0" top="0" bottom="0" alpha="0">
</s:Rect>
<s:Rect left="0" right="0" bottom="0" height="9" alpha="0">
</s:Rect>
<s:Rect left="0" right="0" top="0" height="9" alpha="0">
</s:Rect>
<s:Rect left="0" right="0" bottom="0" height="1" alpha="0">
</s:Rect>
</s:SparkSkin>
我怎麼申請是皮膚? Spark DataGrid沒有'headerSkinClass'或'headerStyleName'屬性。 – Travesty3