Flex中如何通过titleStyleName样式自定义RichTextEditor控件标题栏的例子
By Minidxer | December 8, 2008
接下来的例子演示了Flex中如何通过titleStyleName样式,自定义RichTextEditor控件标题栏。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
- layout="vertical"
- verticalAlign="middle"
- backgroundColor="white">
- <mx:Style>
- .richTextEditorTitleStyle {
- color: haloBlue;
- fontSize: 24;
- fontWeight: bold;
- textAlign: center;
- }
- </mx:Style>
- <mx:RichTextEditor id="richTextEditor"
- title="Rich Text Editor"
- titleStyleName="richTextEditorTitleStyle" />
- </mx:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
RichTextEditor |
No Comments » |
Tags: RichTextEditor, titleStyleName