Style in Flex4


 

Style in Flex4

In this section you will introduce to applying style to controls. You can change the appearance of components using style properties.

In this section you will introduce to applying style to controls. You can change the appearance of components using style properties.

Style in Flex4:

In this section you will introduce to applying style to controls. You can change the appearance of components using style properties. If you set the style of the parent container it may be inherited by its children. It means you can set the style once and then apply that style to all controls of a single type.
You can provide the property value in three format:

1. Length
2. Color
3. Time

There are many ways to apply styles in flex. They are following:

1. External style sheets
2. Local style sheets
3. Using StyleManager class
4. getStyle() and setStyle() method
5. Inline Style
6. Setting global styles

Ads