Add solid border to ViewStack : ViewStack « Container « Flex






Add solid border to ViewStack

Add solid border to ViewStack
         

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:VBox>
        <mx:HBox borderStyle="solid">
            <mx:Button id="searchButton" label="Search Screen" click="myViewStack.selectedChild=search;" />
            <mx:Button id="cInfoButton" label="Customer Info Screen" click="myViewStack.selectedChild=custInfo;" />
            <mx:Button id="aInfoButton" label="Account Info Screen" click="myViewStack.selectedChild=accountInfo;" />
        </mx:HBox>
        <mx:ViewStack id="myViewStack" borderStyle="solid" width="100%">
            <mx:Canvas id="search" label="Search">
                <mx:Label text="Search Screen" />
            </mx:Canvas>
            <mx:Canvas id="custInfo" label="Customer Info">
                <mx:Label text="Customer Info" />
            </mx:Canvas>
            <mx:Canvas id="accountInfo" label="Account Info">
                <mx:Label text="Account Info" />
            </mx:Canvas>
        </mx:ViewStack>
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.ViewStack with three child containersViewStack with three child containers
2.Add Canvas to ViewStackAdd Canvas to ViewStack
3.Use LinkBar to control the ViewStackUse LinkBar to control the ViewStack
4.Panel inside ViewStackPanel inside ViewStack
5.LinkBar and ViewStackLinkBar and ViewStack
6.ViewStack is ususlly connected with LinkBarViewStack is ususlly connected with LinkBar
7.Control a ViewStack via a LinkBarControl a ViewStack via a LinkBar
8.Bind the Selected Index of a ViewStack to a VariableBind the Selected Index of a ViewStack to a Variable
9.Define the ViewStack and the three child containersDefine the ViewStack and the three child containers
10.Create a LinkBar control to navigate the ViewStack containerCreate a LinkBar control to navigate the ViewStack container
11.Create a VGroup container so the container for the buttons appears above the ViewStack containerCreate a VGroup container so the container for the buttons appears above the ViewStack container
12.Creating a view stack using a Canvas for each layer
13.Mixing and matching containers in a view stack
14.Using a component as a container in a view stackUsing a component as a container in a view stack