Flex Gumbo中如何通过contentBackgroundColor样式设置FxList背景颜色的例子
By Minidxer | July 14, 2009
接下来的例子演示了Flex Gumbo中如何通过contentBackgroundColor样式,设置FxList背景颜色。
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication name="FxList_contentBackgroundColor_test"
- xmlns="http://ns.adobe.com/mxml/2009"
- backgroundColor="white">
- <ApplicationControlBar dock="true" width="100%">
- <Form styleName="plain">
- <FormItem label="contentBackgroundColor:">
- <ColorPicker id="colorPicker"
- selectedColor="white" />
- </FormItem>
- <FormItem label="enabled:">
- <FxCheckBox id="checkBox"
- selected="true" />
- </FormItem>
- </Form>
- </ApplicationControlBar>
- <FxList id="list"
- contentBackgroundColor="{colorPicker.selectedColor}"
- enabled="{checkBox.selected}"
- horizontalCenter="0"
- verticalCenter="0">
- <dataProvider>
- <ArrayCollection source="[One,Two,Three,Four,Five,Six]" />
- </dataProvider>
- </FxList>
- </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
FxList, Gumbo |
No Comments » |
Tags: contentBackgroundColor, Gumbo