如果添加的skinClass到< MX:表> [英] Trying to add a skinClass to <mx:Form>

查看:136
本文介绍了如果添加的skinClass到< MX:表>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与FLEX4和我想要对皮肤的一种形式(添加背景,并给它的边界,等等。)

I'm working with Flex4 and I'm trying to skin a form (add a background and a border to it, etc.)

我试图做到这一点与的skinClass =Flex的4路

<mx:Form skinClass="skins.MyFormSkin" />

但它不接受的skinClass作为属性。

but it's not accepting skinClass as a property.

我应该怎么办呢,这样我仍然秉承最佳实践Flex 4中(从逻辑去耦的视觉效果)?

推荐答案

要详细说明QZ的回应:MX:表是不是一个Flex 4 Spark组件。这仍然是一个旧式的Flex 3的组件,不支持换肤。 Flex SDK的即将英雄版本提供了一个新的Flex 4样式表(见的http://blog.flexexamples.com/2010/08/28/creating-a-simple-spark-form-in-flex-hero/)

To elaborate on Qz's response: mx:Form is not a Flex 4 spark component. It's still an old-style Flex 3 component and does not support skinning. The upcoming Hero release of the Flex SDK provides a new Flex 4 style Form (see http://blog.flexexamples.com/2010/08/28/creating-a-simple-spark-form-in-flex-hero/)

不过,这仍然是pre释放code在这一点上。根据项目,英雄可能会或可能不适合。

However, that's still pre-release code at this point. Depending on your project, Hero may or may not be appropriate.

这篇关于如果添加的skinClass到&lt; MX:表&GT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆