<?xml version="1.0"?>
<!-- componentsHiddenBoxLayout.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
height="500">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:SkinnableContainer>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Panel id="p1"
title="Panel 1"/>
<s:Panel id="p2"
title="Panel 2"/>
<s:Panel id="p3"
title="Panel 3"/>
</s:SkinnableContainer>
<s:SkinnableContainer>
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<s:Button label="Toggle Panel 2 Visible"
click="{p2.visible=!p2.visible;}"/>
<s:Button label="Toggle Panel 2 in Layout"
click="{p2.includeInLayout=!p2.includeInLayout;}"/>
</s:SkinnableContainer>
</s:Application>
visible 表示控件消失了,位置还在,includeInLayout表示控件的位置消失了,这个位置会被其他控件所占用
最后
以上就是执着西牛最近收集整理的关于Flex 学习之路之九 用户接口user interface includeInLayout 和visible区别的全部内容,更多相关Flex内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复