A TabBar navigator container defines a horizontal row of tabs. The following figure shows an example of a TabBar container:
Like the LinkBar container, you can use a TabBar navigator container to control the active child container of a ViewStack container. The syntax for using a TabBar container to control the active child of a ViewStack container is the same as for a LinkBar container. For an example, see ViewStack navigator container.
While a TabBar container is similar to a TabNavigator container, it does not have any children. For example, you use the tabs of a TabNavigator container to select its visible child container. You can use a TabBar container to control the visible contents of a single container to make that container's children visible or invisible based on the selected tab.
A TabBar container has the following default properties:
| Property | Default |
|---|---|
|
Preferred size |
A width wide enough to contain all label text, plus any margins, and a height tall enough for the label text. The default tab height is determined by the font, style, and skin applied to the container. If you set an explicit height using the |
|
Container resizing rules |
LinkBar containers do not resize by default. Specify percentage sizes if you want your LinkBar to resize based on the size of its parent container. |
|
Margins |
Left, right = 0 pixels. |
Version 1.5
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00001047.htm