Specifications

CHAPTER 14
288
compiler option set to 2.0.1 and once without setting it. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:DateField
id="dateField1"
yearNavigationEnabled="true"
borderColor="red"
/>
</mx:Application>
To see the difference in how styles are passed (or not passed) to subcomponents, compile this application twice.
The first time you compile this example, do not set the
compatibility-version compiler option. The second
time you compile this example, set the
compatibility-version option to 2.0.1, as the following example shows:
mxmlc -compatibility-version=2.0.1 DateFieldSubComponentStyles.mxml
When you run this application without setting the compatibility-version, the borderColor style is applied
to the DateField control, but not to any part of the DateChooser calendar. When you run the 2.0.1 version of this
application, the
borderColor style is applied to the DateField control as well as the buttons and header lines of
the DateChooser calendar.
You can add style properties to a filter list so that they are passed from the control to its subcomponent. For more
information, see “Subcomponent styles” on page 610 in the Adobe Flex 3 Developer Guide.
The following table lists the framework differences between Flex SDK 2.0.1 and Flex SDK 3 that are enforced when
you use the
compatibility-version compiler option:
Difference Behavior in SDK 2.0.1 Behavior in SDK 3
Button control padding prop-
erties
The values of the
paddingLeft,
paddingRight, paddingTop, and
paddingBottom styles are ignored by Button
controls.
The values of the
paddingLeft, paddingRight,
paddingTop, and paddingBottom styles are
honored. To make your icon Buttons look like the SDK
2.0.1 buttons, set the
paddingLeft and
paddingRight style properties to 0.
RadioButton control height RadioButton controls do not use the padding
properties when determining their height.
The default height of a RadioButton control is 18
pixels.
RadioButton controls take padding properties into
account when determining their height.
The default height of a RadioButton control is 22
pixels.
DateChooser year navigator
skins
The
measuredHeight property was larger
because of the changes in Button sizing.
The measuredHeight property was smaller.
DataGrid header skins To customize the DataGrid header background,
you subclass DataGrid and override the
drawHeaderBackground() method.
The logic from the
drawHeaderBackground()
method is in the DataGridHeaderBackgroundSkin
class. Also, you use the
headerBackgroundSkin
style to style DataGrid header background skins.