Tag Archives: skinClass

Setting a custom broken image icon for the Spark Image control in Flex Hero

In a previous example, “Setting a custom broken image skin for the Image control in Flex”, we saw how you could set a custom broken image skin for the Flex Image control by setting the brokenImageSkin style.

The following example shows how you can set a custom broken image skin for the Spark Image control in Flex Hero by creating a custom skin and creating a BitmapImage instance in the invalid state.

Continue reading Setting a custom broken image icon for the Spark Image control in Flex Hero

Removing the selected highlight from the Spark ButtonBar control in Flex 4 (redux)

In a previous example, “Removing the selected highlight from the Spark ButtonBar control in Flex 4”, we saw how you can remove the selected highlight from the Spark ButtonBar control in Flex 4 by creating a custom ButtonBar and ButtonBarButton skin class.

The following example shows how you can remove the selected highlight from the Spark ButtonBar control in Flex 4 by extending the Spark ButtonBarButton class and creating a custom Spark ButtonBar skin.

Continue reading Removing the selected highlight from the Spark ButtonBar control in Flex 4 (redux)

Creating a stacked Spark Form container in Flex Hero

The following example shows how you can create a stacked Spark Form, FormHeading, and FormItem in Spark Hero by setting a the skinClass to the StackedFormSkin, StackedFormHeadingSkin, and StackedFormItem skins respectively.

Continue reading Creating a stacked Spark Form container in Flex Hero

Setting a bitmap fill on a Spark Button control in Flex 4 (redux)

In a previous example, “Setting a bitmap fill on a Spark Button control in Flex 4”, we saw how you could apply a background bitmap fill on a Spark Button control in Flex 4 by creating a custom skin, using the BitmapFill class, and setting the skinClass style.

The following example shows how you can extend the Spark Button class and add a custom style for the background image fill instead of creating several different skins for each bitmap fill.

Continue reading Setting a bitmap fill on a Spark Button control in Flex 4 (redux)