2011-08-18 30 views

回答

7

基於spark數據網格皮膚創建一個新皮膚,如果您使用的是Flash Builder,可以使用New> MXML Skin輕鬆完成,如果不是,可以在sdks \ 4.5下找到DataGridSkin.mxml文件。 1個\框架\項目\火花的\ src \火花\皮膚\火花

讓這個皮膚的副本,以使水平和垂直網格線消失了,你必須刪除這些組件

<fx:Component id="columnSeparator"> 
    <s:Line> 
     <s:stroke> 
      <s:SolidColorStroke color="0xE6E6E6" weight="1" caps="square"/> 
     </s:stroke> 
    </s:Line> 
</fx:Component> 

and

<fx:Component id="rowSeparator"> 
     <s:Line> 
      <s:stroke> 
       <s:SolidColorStroke color="0xE6E6E6" weight="1" caps="square"/> 
      </s:stroke> 
     </s:Line> 
</fx:Component> 

之後,不要忘記你的DataGrid的皮膚設置爲這種皮膚

skinClass="path.to.skin.CustomSkin" 
+0

對不起,這是我花的年齡能夠對此做出反應,但完美的作品 - 謝謝。 – chris

0

創建一個基於原始皮膚的新皮膚並根據自己的喜好進行編輯。

相關問題