Use ToggleBarButton to toggle two forms in ViewStack : ToggleButton « Components « Flex






Use ToggleBarButton to toggle two forms in ViewStack

Use ToggleBarButton to toggle two forms in ViewStack
       

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:VBox>
        <mx:ToggleButtonBar dataProvider="{viewStack}" />
        <mx:ViewStack id="viewStack">
            <mx:Form label="Name">
                <mx:FormItem label="First Name">
                    <mx:TextInput id="first" />
                </mx:FormItem>
                <mx:FormItem label="Middle Name">
                    <mx:TextInput id="middle" />
                </mx:FormItem>
                <mx:FormItem label="Last Name">
                    <mx:TextInput id="last" />
                </mx:FormItem>
            </mx:Form>
            <mx:Form label="Comments">
                <mx:FormItem label="Comments">
                    <mx:TextArea id="comments" />
                </mx:FormItem>
            </mx:Form>
            <mx:Form label="Another">
                <mx:FormItem label="Another">
                    <mx:TextArea id="another" />
                </mx:FormItem>
            </mx:Form>

        </mx:ViewStack>
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.A toggle button with an image for up, down, over, and disabled statesA toggle button with an image for up, down, over, and disabled states
2.Toggle Button color between blue and the defaultToggle Button color between blue and the default
3.Toggle button font size between null and 8Toggle button font size between null and 8
4.Toggle style buttonToggle style button
5.Mark a Button as Toggle.Mark a Button as Toggle.
6.Toggle data series when the user clicks on the Change Series button:Toggle data series when the user clicks on the Change Series button:
7.Toggle color of the Button control between blue and the default by using this techniqueToggle color of the Button control between blue and the default by using this technique