ViewStack doesn't have buttons. Most button's visuals are controlled
through some combination of styles and skins
Correct me if I"m wrong. The following mxml definition result in two buttons being created and managed by the ViewStack
With the label of the buttons being "DemoPane"l, and "Configure" respectively.
<mx:ViewStack id="viewStack" width="100%">
<DemoPanel id="demoPanel" label="Demo Panel" width="100%" runMedigridsDemoEvent="runDemoEventHandler(event)"/>
<DemoConfigSpace id="demoConfigurationSpace" clinicianAssignmentEvent="clinicianAssignedHandler(event)" label="Configure" width="100%"/>
1 person found this helpful
I think you want to use Advanced CSS selectors. This will allow you to specify styles for a Button that is in a certain type of container.Here's one tutorial:Note, this support is only in Flex 4. If you are using Flex 3, I'd recommend making Button subclasses for your Buttons in the different containers and then using a CSS type selector to define the styles.- Jason
Thanks. Unfortunately. We are using Flex3. So. I'll use the second selector.
Thanks. Very helpful