Select to view content in your preferred language

Background color for controlBarLayout

738
1
12-11-2012 06:56 AM
SonaliVishwakarma
Emerging Contributor
Hi,
I am trying to change background color of controlBarLayout in my application. But I am not able to change it. When I changed the theme then also the color of that horizontal bar is not changing. I have an attached a screenshot along with this post.

Can anyone help me with this.

Thank you in advance.

Regards
Sonali
Tags (2)
0 Kudos
1 Reply
LloydHeberlie
Regular Contributor
You need to skin the application by setting the skinClass on the main Application.
You can do this in the main mxml or you can set it through css.

s|Application
{
    skinClass: ClassReference("com.esri.ags.samples.skins.MyApplicationSkin");
}


FlashBuilder can create the "MXML Skin" for you:
File -> New -> MXML Skin

where the host component is "spark.components.Application" and your new skin is a copy of "spark.skins.spark.ApplicationSkin".
For more info see About Spark skins

[ATTACH=CONFIG]19919[/ATTACH]

Hope that helps,
0 Kudos