开发者

What are considered 'views' in flex?

开发者 https://www.devze.com 2023-01-14 04:05 出处:网络
What qualifies as a \'view\' in flex. Are \'views\' 开发者_如何学运维containers like panels? Or are they flex components? Examples would be great. Thanks. Views are just child containers of a parent c

What qualifies as a 'view' in flex. Are 'views' 开发者_如何学运维containers like panels? Or are they flex components? Examples would be great. Thanks.


Views are just child containers of a parent container which the parent shows one at a time. As in the ViewStack control (to quote Adobe's docs):

"A ViewStack navigator container consists of a collection of child containers stacked on top of each other, where only one child at a time is visible. When a different child container is selected, it seems to replace the old one because it appears in the same location. However, the old child container still exists; it is just invisible."

You navigate the stack of views by changing the selectedIndex property of the ViewStack. There are other kinds of controls that handle views, but this will get you started.

0

精彩评论

暂无评论...
验证码 换一张
取 消