<?xml version="1.0" encoding="utf-8"?>
<!--如何给ButtonBar添加一个ViewStack-->
<!--<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white">
<mx:ButtonBar id="buttonBar" dataProvider="{viewStack}" buttonHeight="32"/>
<mx:ViewStack id="viewStack">
<mx:VBox label="Button" icon="@Embed('assets/Button.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="Button..."/>
</mx:VBox>
<mx:VBox label="ButtonBar" icon="@Embed('assets/ButtonBar.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="ButtonBar..."/>
</mx:VBox>
<mx:VBox label="CheckBox" icon="@Embed('assets/CheckBox.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="CheckBox..."/>
</mx:VBox>
<mx:VBox label="ColorPicker" icon="@Embed('assets/ColorPicker.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="ColorPicker..."/>
</mx:VBox>
</mx:ViewStack>
</mx:Application>-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations> </fx:Declarations>
<s:VGroup>
<s:ButtonBar dataProvider="{myViewStack}" requireSelection="true" />
<mx:ViewStack id="myViewStack" borderStyle="solid">
<s:NavigatorContent id="search" label="Search">
<s:Label text="Search Screen"/>
</s:NavigatorContent> <s:NavigatorContent id="custInfo" label="Customer Info">
<s:Label text="Customer Info"/>
</s:NavigatorContent> <s:NavigatorContent id="accountInfo" label="Account Info">
<s:Label text="Account Info"/>
</s:NavigatorContent>
</mx:ViewStack>
<s:ButtonBar id="buttonBar" dataProvider="{viewStack}" requireSelection="true" />
<mx:ViewStack id="viewStack">
<mx:VBox label="Button" icon="@Embed('assets/Button.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="Button..."/>
</mx:VBox>
<mx:VBox label="ButtonBar" icon="@Embed('assets/ButtonBar.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="ButtonBar..."/>
</mx:VBox>
<mx:VBox label="CheckBox" icon="@Embed('assets/CheckBox.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="CheckBox..."/>
</mx:VBox>
<mx:VBox label="ColorPicker" icon="@Embed('assets/ColorPicker.png')" backgroundColor="white" width="480" height="60">
<mx:Label text="ColorPicker..."/>
</mx:VBox>
</mx:ViewStack>
</s:VGroup>
</s:Application>

最新文章

  1. c#3.0新特性
  2. 按Enter键执行表单验证
  3. 用tcpdump分析tcp三次握手,四次挥手
  4. Apache Shiro 简单概念
  5. CSS hack技术
  6. (1)第一个ASP.NET Web API
  7. C primer plus 练习题 第二章
  8. 2016 系统设计第一期 (档案一)MVC ajax 获取json数据
  9. NOI2002 荒岛野人
  10. Android ActionBar详解(三):ActionBar实现切换Tabs标签
  11. hbase 单机模式安装
  12. PHP实现微信模板消息发送给指定用户
  13. JS上传文件、导入文件
  14. 51Nod1868 彩色树 虚树
  15. 怎样动态地插入不会暴露给用户的JS文件
  16. [转载]ViewPort &lt;meta&gt;标记
  17. js使用正则替换掉所有的“”
  18. Flutter学习笔记(四)--Flutter几个小知识点
  19. 【转】Ultra simple ISO-7816 Interface
  20. 三剑客之sed&amp;grep

热门文章

  1. jquery操作html data-* 属性的坑
  2. apache使用ssl数字证书
  3. hibernate 自生双向一对多 多对一管理 (树)
  4. nginx 一般网站部署常用参数设置
  5. mybatis——动态sql
  6. C++资料大全
  7. Oracle维护常用SQL
  8. [Hibernate] - Annotations - One To One
  9. Angular学习(3)- 双向梆定
  10. isa class 帮助确定对象或变量的数据类型