您的位置:首页 > Web前端 > CSS

Flex Gumbo中如何通过contentBackgroundColor样式,设置TextInput内文本背景颜色

2009-06-09 01:16 996 查看
main.mxml

<?xml version="1.0" encoding="utf-8"?>

<s:Application name="Spark_TextInput_contentBackgroundColor_test"

xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/halo">



<mx:ApplicationControlBar width="100%" cornerRadius="0">

<mx:Form styleName="plain">

<mx:FormItem label="contentBackgroundColor:">

<mx:ColorPicker id="colorPicker"

selectedColor="#FFFFFF" />

</mx:FormItem>

</mx:Form>

</mx:ApplicationControlBar>



<s:TextInput id="textInput"

text="The quick brown fox jumps over the lazy dog"

contentBackgroundColor="{colorPicker.selectedColor}"

horizontalCenter="0"

verticalCenter="0" />



</s:Application>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐