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

Flex中如何通过disabledColor样式设置NumericStepper控件无效时文本颜色的例子

2009-11-11 15:57 976 查看
在前面的Flex中如何设置TextArea控件中的无效(disabled)文本颜色的例子中,我们了解了Flex中如何通过设定TextArea控件的
color
disabledColor样式,设定文本在有效,无效状态下的颜色
。同样的,接下来的例子演示了FlexNumericStepper控件中,如何通过[code]disabledColor
样式设置NumericStepper控件无效时文本颜色。
让我们先来看一下Demo(
可以右键View Source或点击这里察看源代码


下面是完整代码(或点击这里察看):

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">

<mx:ApplicationControlBar dock="true">
<mx:Form styleName="plain">
<mx:FormItem label="enabled:">
<mx:CheckBox id="checkBox" selected="true" />
</mx:FormItem>
<mx:FormItem label="disabledColor:">
<mx:ColorPicker id="colorPicker" />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>

<mx:NumericStepper id="numericStepper"
enabled="{checkBox.selected}"
disabledColor="{colorPicker.selectedColor}" />

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