Flex 4中如何通过baseColor样式设置DropDownList基本肤色的例子
By Minidxer | October 22, 2009
接下来的例子演示了Flex 4中如何通过baseColor样式,设置DropDownList基本肤色。
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_DropDownList_baseColor_test"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:mx="library://ns.adobe.com/flex/halo"
- xmlns:s="library://ns.adobe.com/flex/spark">
- <mx:ApplicationControlBar width="100%" cornerRadius="0">
- <mx:Form styleName="plain">
- <mx:FormItem label="baseColor:">
- <mx:ColorPicker id="colorPicker"
- selectedColor="#CCCCCC" />
- </mx:FormItem>
- </mx:Form>
- </mx:ApplicationControlBar>
- <s:DropDownList id="dropDownList"
- baseColor="{colorPicker.selectedColor}"
- requireSelection="true"
- horizontalCenter="0"
- top="50">
- <s:dataProvider>
- <s:ArrayList>
- <fx:String>(1) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(2) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(3) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(4) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(5) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(6) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(7) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(8) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- <fx:String>(9) The Quick Brown Fox Jumps Over the Lazy Dog</fx:String>
- </s:ArrayList>
- </s:dataProvider>
- </s:DropDownList>
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
DropDownList, Gumbo |
1 Comment » |
Tags: baseColor, Gumbo
该示例已经失效?