简体   繁体   English

flex4中s:FormItem和mx:FormItem有什么不同

[英]whats different between s:FormItem and mx:FormItem in flex4

当我在flex中使用Form和FormItem时,我发现s:FormItem无法自动放置其标签位置,并且不能使用direction,horizentalGap属性,但是adobe建议我们使用spark.components.FormItem代替mx。 FormItem,那么您能告诉我这两个类的不同之处,并告诉我为什么spark.components.FormItem.Thanks中不能使用诸如方向,horizentalGap之类的属性。

Well, the mx FormItem is "legacy" code and was built using the MX / Halo component architecture . 好吧, mx FormItem是“旧版”代码,是使用MX / Halo组件体系结构构建的

The Spark FormItem was built using the new Spark component architecture . Spark FormItem是使用新的Spark组件体系结构构建的 The Flex Framework Components built in each respective architecture are not identical. 每个相应体系结构中内置的Flex Framework组件都不相同。

If you want to specify a "Direction" in the Spark FormItem you could try setting it's layout property to either a horizontal or vertical layout . 如果要在Spark FormItem中指定“方向”,则可以尝试将其layout属性设置为水平或垂直布局

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM