Flex中如何用backgroundDisabledColor样式,自定义TextInput控件在无效状态下填充颜色

main.mxml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"
  3. layout="vertical"
  4. verticalAlign="middle"
  5. backgroundColor="white">
  6. <mx:ApplicationControlBardock="true">
  7. <mx:Labeltext="backgroundDisabledColor:" />
  8. <mx:ColorPickerid="colorPicker"
  9. selectedColor="white"/>
  10. <mx:CheckBoxid="checkBox"
  11. label="enabled:"
  12. labelPlacement="left"/>
  13. </mx:ApplicationControlBar>
  14. <mx:TextInputtext="The quick brown fox"
  15. backgroundDisabledColor="{colorPicker.selectedColor}"
  16. enabled="{checkBox.selected}"/>
  17. </mx:Application>

你可能感兴趣的:(xml,Flex,Adobe)