<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; selectedTabTextStyleName</title>
	<atom:link href="http://blog.flexexamples.com/tag/selectedtabtextstylename/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vertically aligning tabs within a TabBar control in Flex</title>
		<link>http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 07:54:49 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[TabBar]]></category>
		<category><![CDATA[selectedTabTextStyleName]]></category>
		<category><![CDATA[tabStyleName]]></category>
		<category><![CDATA[verticalAlign]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/03/19/horizontally-aligning-tabs-within-a-tabbar-control-in-flex/">&#8220;Horizontally aligning tabs within a TabBar control in Flex&#8221;</a>, we saw how you could horizontally align tabs in a TabBar control by setting the horizontalAlign style.</p> <p>The following example shows how you can align tabs vertically within a Flex TabBar control by setting the verticalAlign style.</p> <p>Full code after the [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/03/19/horizontally-aligning-tabs-within-a-tabbar-control-in-flex/">&#8220;Horizontally aligning tabs within a TabBar control in Flex&#8221;</a>, we saw how you could horizontally align tabs in a TabBar control by setting the <code>horizontalAlign</code> style.</p>
<p>The following example shows how you can align tabs vertically within a Flex TabBar control by setting the <code>verticalAlign</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-567"></span></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        TabBar {
            tabStyleName: myCustomTabStyleName;
            selectedTabTextStyleName: myCustomSelectedTabTextStyleName;
        }

        .myCustomTabStyleName {
            fillColors: haloBlue, haloGreen;
            fillAlphas: 1.0, 1.0;
        }

        .myCustomSelectedTabTextStyleName {
            color: white;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object label="Button" /&gt;
        &lt;mx:Object label="ButtonBar" /&gt;
        &lt;mx:Object label="ColorPicker" /&gt;
        &lt;mx:Object label="ComboBox" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="verticalAlign:"&gt;
                &lt;mx:ComboBox id="comboBox"&gt;
                    &lt;mx:dataProvider&gt;
                        &lt;mx:Array&gt;
                            &lt;mx:Object label="top" /&gt;
                            &lt;mx:Object label="middle" /&gt;
                            &lt;mx:Object label="bottom" /&gt;
                        &lt;/mx:Array&gt;
                    &lt;/mx:dataProvider&gt;
                &lt;/mx:ComboBox&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Box backgroundColor="black"&gt;
        &lt;mx:TabBar id="tabBar"
                dataProvider="{arr}"
                height="200"
                tabWidth="100"
                tabHeight="40"
                verticalAlign="{comboBox.selectedItem.label}"
                direction="vertical" /&gt;
    &lt;/mx:Box&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Vertically aligning tabs within a TabBar control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/',contentID: 'post-567',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'selectedTabTextStyleName,tabStyleName,verticalAlign',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/03/20/vertically-aligning-tabs-within-a-tabbar-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Styling the Flex TabNavigator control</title>
		<link>http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/</link>
		<comments>http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 08:05:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Styles]]></category>
		<category><![CDATA[TabNavigator]]></category>
		<category><![CDATA[firstTabStyleName]]></category>
		<category><![CDATA[lastTabStyleName]]></category>
		<category><![CDATA[selectedTabTextStyleName]]></category>
		<category><![CDATA[tabStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/</guid>
		<description><![CDATA[<p>The following example shows how you can style the TabNavigator control in Flex using the tabStyleName, firstTabStyleName, lastTabStyleName, and selectedTabTextStyleName styles.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabNavigator_tabStyleName_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0"?&#62; &#60;!-- http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Style&#62; TabNavigator { backgroundColor: black; cornerRadius: 0; tabStyleName: "MyTabs"; firstTabStyleName: "MyFirstTab"; lastTabStyleName: "MyLastTab"; selectedTabTextStyleName: [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can style the TabNavigator control in Flex using the <code>tabStyleName</code>, <code>firstTabStyleName</code>, <code>lastTabStyleName</code>, and <code>selectedTabTextStyleName</code> styles.</p>
<p>Full code after the jump.</p>
<p><span id="more-210"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TabNavigator_tabStyleName_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        TabNavigator {
            backgroundColor: black;
            cornerRadius: 0;
            tabStyleName: "MyTabs";
            firstTabStyleName: "MyFirstTab";
            lastTabStyleName: "MyLastTab";
            selectedTabTextStyleName: "MySelectedTab";
        }

        .MyTabs {
            backgroundColor: black;
            cornerRadius: 0;
            color: black;
        }

        .MyFirstTab,
        .MyLastTab {
            backgroundColor: black;
            cornerRadius: 0;
            color: black;
        }

        .MySelectedTab {
            backgroundColor: haloBlue;
            color: haloBlue;
            textRollOverColor: haloBlue;
        }
    &lt;/mx:Style&gt;

    &lt;mx:TabNavigator id="tabNavigator"
            width="100%"
            height="100%"
            tabHeight="40"&gt;
        &lt;mx:VBox label="Panel 1" backgroundColor="haloOrange"&gt;
            &lt;mx:Label text="TabNavigator container panel 1"/&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label="Panel 2" backgroundColor="haloGreen"&gt;
            &lt;mx:Label text="TabNavigator container panel 2"/&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label="Panel 3" backgroundColor="haloBlue"&gt;
            &lt;mx:Label text="TabNavigator container panel 3"/&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label="Panel 4" backgroundColor="haloSilver"&gt;
            &lt;mx:Label text="TabNavigator container panel 4"/&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:TabNavigator&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/TabNavigator_tabStyleName_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/TabNavigator_tabStyleName_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Styling the Flex TabNavigator control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/',contentID: 'post-210',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'firstTabStyleName,lastTabStyleName,selectedTabTextStyleName,tabStyleName',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/09/26/styling-the-flex-tabnavigator-control/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

