zoukankan      html  css  js  c++  java
  • [Flex] ButtonBar系列——如何给ButtonBar添加一个ViewStack

    <?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>
  • 相关阅读:
    Browsermob-Proxy 备忘
    Restic 备份工具
    GP刷新实体视图
    SDKMAN安装使用
    The requested module '/node_modules/.vite/vue.js?v=65afd58f' does not provide an export named 'default'
    Python——执行打包提示 ‘pyinstaller‘ 不是内部或外部命令,也不是可运行的程序
    python 打包exe 方法
    Python使用阿里云镜像
    使用Python项目生成所有依赖包的清单方式
    Git GuiUI的乱码问题如何解决
  • 原文地址:https://www.cnblogs.com/frost-yen/p/4881632.html
Copyright © 2011-2022 走看看