Flex:使用direction控制TileList的显示方向

TileBase.direction

属性

direction:String  [读写]

此控件布置其子控件的方向。可能的值为 TileBaseDirection.HORIZONTAL 和 TileBaseDirection.VERTICAL。默认值为 TileBaseDirection.HORIZONTAL。

如果值为 TileBaseDirection.HORIZONTAL,则将沿第一行布置拼贴直至达到可见的列数或 maxColumns,然后再填充新行。如果创建的行数多于一次能够显示的行数,控件将显示垂直 scrollbar。如果值为 TileBaseDirection.VERTICAL,情况相反。

此属性可用作数据绑定的源。修改此属性后,将调度 directionChanged 事件。

Pasted from <http://livedocs.adobe.com/flex/3_cn/langref/mx/controls/listClasses/TileBase.html#direction>

如下图, 展示了一个竖排的TileList

image

This entry was posted in ActionScript and tagged , , , . Bookmark the permalink.

One Response to Flex:使用direction控制TileList的显示方向

  1. 且行且吟 says:

    广告主义www.adism.net决定修正方向,更改博客名为“且行且吟”,请更新广告主义为且行且吟,多谢!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>