Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows
Language Found: English
Description
Reproduction:
1. Compile and run the below sample piece of code
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:LinkBar dataProvider="
"/>
<mx:ViewStack id="myViewStack" width="100%" height="80%">
<mx:Canvas id="search" label="Search" backgroundColor="white" width="100%" height="100%">
<mx:Label text="Search Screen"/>
</mx:Canvas>
<mx:Canvas id="custInfo" label="Customer Info" backgroundColor="white" width="100%" height="100%">
<mx:Label text="Customer Info"/>
</mx:Canvas>
<mx:Canvas id="accountInfo" label="Account Info" backgroundColor="white" width="100%" height="100%">
<mx:Label text="Account Info" />
</mx:Canvas>
</mx:ViewStack>
<mx:LinkBar horizontalGap="5" itemClick="clickHandler(event);">
<mx:dataProvider>
<mx:Array>
<mx:String>Flash</mx:String>
<mx:String>Director</mx:String>
<mx:String>Dreamweaver</mx:String>
<mx:String>ColdFusion</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:LinkBar>
<mx:TextArea id="myTA" width="100%" height="100%"/>
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
private function clickHandler(event:ItemClickEvent):void
]]
>
</mx:Script>
</mx:Application>
2. LinkBar acts like a ToggleButtonBar when dataProvider is a ViewStack and acts like a ButtonBar when the dataProvider is a data.
3. User could require the behavior of LinkBar with ViewStack as the DataProvider for LinkBar with the DataProvider is Data, so it would be good to have a property to manually control over the toggle behavior of LinkBar component.
Actual Results: User could require the behavior of LinkBar with ViewStack as the DataProvider for LinkBar with the DataProvider is Data, so it would be good to have a property to manually control over the toggle behavior of LinkBar component.
Expected Results: Manual control over toggle behavior of LinkBar component
Workaround: none