<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="Panel_titleIcon_test"
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:String id="lorem" source="lorem.txt" />
<mx:Panel id="panel"
title="Panel title"
titleIcon="@Embed('assets/Panel.png')">
<mx:Text id="txt"
text="{lorem}"
width="500"
textAlign="justify"
selectable="false" />
</mx:Panel>
</mx:Application>
Flex中如何利用titleIcon属性给Panel容器标题部添加一个ICON图标的例子
最新推荐文章于 2020-10-22 20:18:19 发布