Add solid border to ViewStack : ViewStack « Container « Flex
- Flex
- Container
- 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