Flex Gumbo中如何通过lineThrough样式设置TextInput删除线的例子

By Minidxer | August 18, 2009

接下来的例子演示了Flex Gumbo中如何通过lineThrough样式,设置TextInput删除线。

让我们先来看一下Demo可以点击这里察看源代码):


下面是完整代码(或点击这里察看):
下面是main.mxml:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application name="Spark_TextInput_lineThrough_test"
  3.         xmlns:fx="http://ns.adobe.com/mxml/2009"
  4.         xmlns:s="library://ns.adobe.com/flex/spark"
  5.         xmlns:mx="library://ns.adobe.com/flex/halo">
  6.  
  7.     <s:CheckBox id="checkBox"
  8.             label="lineThrough"
  9.             selected="true"
  10.             left="10"
  11.             top="10" />
  12.  
  13.     <s:TextInput id="textInput"
  14.             text="The quick brown fox jumps over the lazy dog."
  15.             lineThrough="{checkBox.selected}"
  16.             horizontalCenter="0"
  17.             verticalCenter="0" />
  18.  
  19. </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Topics: Gumbo, TextInput | No Comments » | Tags: ,

Search Posts