<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tabs Studio Blog (organizing Visual Studio document tabs) &#187; Style</title>
	<atom:link href="http://blog.tabsstudio.com/tag/style/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tabsstudio.com</link>
	<description>Tabs Studio Blog (the Visual Studio add-in development)</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:43:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.tabsstudio.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/ba78d6f4bf22b80ac4a0065cc7ce4b14?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Tabs Studio Blog (organizing Visual Studio document tabs) &#187; Style</title>
		<link>http://blog.tabsstudio.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.tabsstudio.com/osd.xml" title="Tabs Studio Blog (organizing Visual Studio document tabs)" />
	<atom:link rel='hub' href='http://blog.tabsstudio.com/?pushpress=hub'/>
		<item>
		<title>Dark theme for Visual Studio 2010</title>
		<link>http://blog.tabsstudio.com/2011/12/16/dark-theme-for-visual-studio-2010/</link>
		<comments>http://blog.tabsstudio.com/2011/12/16/dark-theme-for-visual-studio-2010/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 07:32:02 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1530</guid>
		<description><![CDATA[If you like the original Visual Studio 2010 tabs theme you can use the excellent Visual Studio 2010 style for Tabs Studio by Jameel Al-Aziz. But, as this style changes many aspects of tabs presentation, it also overrides custom colors that you assign with tab coloring rules in Tabs Studio presentation options. (Of course, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1530&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you like the original Visual Studio 2010 tabs theme you can use the excellent <a href="http://www.tabsstudio.com/community/styles/vs2010.txt">Visual Studio 2010 style</a> for Tabs Studio by Jameel Al-Aziz. But, as this style changes many aspects of tabs presentation, it also overrides custom colors that you assign with tab coloring rules in Tabs Studio presentation options. (Of course, you can implement all coloring rules as style rules, it just requires working directly with XAML). Below is a simple style that closer to the overall Visual Studio 2010 theme and still supports additional tab coloring rules.</p>
<p>
The following style changes tab text color from default black to white for not selected and not highlighted tabs:
</p>
<pre>
&lt;Style TargetType="TabsStudio:TabName" BasedOn="{StaticResource DefaultTabNameStyle}"&gt;
  &lt;Style.Triggers&gt;
  &lt;MultiDataTrigger&gt;
            &lt;MultiDataTrigger.Conditions&gt;
                &lt;Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
                &lt;Condition Binding="{Binding Path=IsTabSelected, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
            &lt;/MultiDataTrigger.Conditions&gt;
            &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;/MultiDataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;

&lt;Style TargetType="TabsStudio:TabExtension" BasedOn="{StaticResource DefaultTabExtensionStyle}"&gt;
  &lt;Style.Triggers&gt;
  &lt;MultiDataTrigger&gt;
            &lt;MultiDataTrigger.Conditions&gt;
                &lt;Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
                &lt;Condition Binding="{Binding Path=IsTabSelected, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
            &lt;/MultiDataTrigger.Conditions&gt;
            &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;/MultiDataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;

&lt;Style TargetType="TabsStudio:TabNameModificationMarker" BasedOn="{StaticResource DefaultTabNameModificationMarkerStyle}"&gt;
  &lt;Style.Triggers&gt;
  &lt;MultiDataTrigger&gt;
            &lt;MultiDataTrigger.Conditions&gt;
                &lt;Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
                &lt;Condition Binding="{Binding Path=IsTabSelected, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
            &lt;/MultiDataTrigger.Conditions&gt;
            &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;/MultiDataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;

&lt;Style TargetType="TabsStudio:TabExtensionModificationMarker" BasedOn="{StaticResource DefaultTabExtensionModificationMarkerStyle}"&gt;
  &lt;Style.Triggers&gt;
  &lt;MultiDataTrigger&gt;
            &lt;MultiDataTrigger.Conditions&gt;
                &lt;Condition Binding="{Binding Path=IsMouseOver, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
                &lt;Condition Binding="{Binding Path=IsTabSelected, RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="False"/&gt;
            &lt;/MultiDataTrigger.Conditions&gt;
            &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;/MultiDataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;
</pre>
<p>Plus you need to create a tab coloring rule for not selected tabs with transparent background:</p>
<pre>
&lt;SolidColorBrush Color="Transparent"/&gt;
</pre>
<p><div id="attachment_1535" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/12/transparent-background-for-not-selected-tabs.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/transparent-background-for-not-selected-tabs.png" alt="Transparent background for not selected tabs" title="Transparent background for not selected tabs" width="570" height="483" class="size-full wp-image-1535" /></a><p class="wp-caption-text">Transparent background for not selected tabs</p></div><br />
It is very important that this rule be the first one in your tab coloring rules so that additional tab coloring rules could override it with custom colors. Below is the new tabs look:<br />
<div id="attachment_1536" class="wp-caption aligncenter" style="width: 797px"><a href="http://tabsstudio.files.wordpress.com/2011/12/dark-tabs-theme-in-visual-studio-2010.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/dark-tabs-theme-in-visual-studio-2010.png" alt="Dark tabs theme in Visual Studio 2010" title="Dark tabs theme in Visual Studio 2010" width="787" height="209" class="size-full wp-image-1536" /></a><p class="wp-caption-text">Dark tabs theme in Visual Studio 2010</p></div><br />
Now you can for example set a specific color for a project with Tab coloring rules. As tab text is white, you need to use dark colors for background or use normal colors with transparency (to set transparency level, use the <b>Opacity</b> slider in the <b>Color Picker</b> dialog):<br />
<div id="attachment_1537" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/12/project-tab-coloring-rule-with-transparency.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/project-tab-coloring-rule-with-transparency.png" alt="Project tab coloring rule with transparency" title="Project tab coloring rule with transparency" width="570" height="483" class="size-full wp-image-1537" /></a><p class="wp-caption-text">Project tab coloring rule with transparency</p></div><br />
<div id="attachment_1538" class="wp-caption aligncenter" style="width: 797px"><a href="http://tabsstudio.files.wordpress.com/2011/12/dark-theme-with-custom-transparent-colors-for-two-projects.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/dark-theme-with-custom-transparent-colors-for-two-projects.png" alt="Dark theme with custom transparent colors for two projects" title="Dark theme with custom transparent colors for two projects" width="787" height="234" class="size-full wp-image-1538" /></a><p class="wp-caption-text">Dark theme with custom transparent colors for two projects</p></div><br />
Additionally you can set selected but unfocused tab background to gray as in the original Visual Studio 2010 theme:</p>
<pre>
&lt;Condition Binding="{Binding Path=IsGroupFocused, RelativeSource={RelativeSource Self}}" Value="False"/&gt;
&lt;Condition Binding="{Binding Path=IsGroupWithLastActiveDocument, RelativeSource={RelativeSource Self}}" Value="True"/&gt;
</pre>
<pre>
&lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1"&gt;
  &lt;GradientStop Color="#FFFDFDFD" Offset="0"/&gt;
  &lt;GradientStop Color="#FFD5DAE3" Offset="0.49"/&gt;
  &lt;GradientStop Color="#FFCED4DF" Offset="0.5"/&gt;
  &lt;GradientStop Color="#FFCED4DF" Offset="1"/&gt;
&lt;/LinearGradientBrush&gt;
</pre>
<p><div id="attachment_1539" class="wp-caption aligncenter" style="width: 859px"><a href="http://tabsstudio.files.wordpress.com/2011/12/gray-color-rule-for-selected-but-unfocused-tab.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/gray-color-rule-for-selected-but-unfocused-tab.png" alt="Gray color rule for selected but unfocused tab" title="Gray color rule for selected but unfocused tab" width="849" height="487" class="size-full wp-image-1539" /></a><p class="wp-caption-text">Gray color rule for selected but unfocused tab</p></div><br />
<div id="attachment_1540" class="wp-caption aligncenter" style="width: 797px"><a href="http://tabsstudio.files.wordpress.com/2011/12/gray-selected-tab-when-solution-explorer-is-active.png"><img src="http://tabsstudio.files.wordpress.com/2011/12/gray-selected-tab-when-solution-explorer-is-active.png" alt="Gray selected tab when Solution Explorer is active" title="Gray selected tab when Solution Explorer is active" width="787" height="236" class="size-full wp-image-1540" /></a><p class="wp-caption-text">Gray selected tab when Solution Explorer is active</p></div></p>
<p><b>Update</b>: Added white color to modification markers in the style.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1530/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1530&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/12/16/dark-theme-for-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/transparent-background-for-not-selected-tabs.png" medium="image">
			<media:title type="html">Transparent background for not selected tabs</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/dark-tabs-theme-in-visual-studio-2010.png" medium="image">
			<media:title type="html">Dark tabs theme in Visual Studio 2010</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/project-tab-coloring-rule-with-transparency.png" medium="image">
			<media:title type="html">Project tab coloring rule with transparency</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/dark-theme-with-custom-transparent-colors-for-two-projects.png" medium="image">
			<media:title type="html">Dark theme with custom transparent colors for two projects</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/gray-color-rule-for-selected-but-unfocused-tab.png" medium="image">
			<media:title type="html">Gray color rule for selected but unfocused tab</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/12/gray-selected-tab-when-solution-explorer-is-active.png" medium="image">
			<media:title type="html">Gray selected tab when Solution Explorer is active</media:title>
		</media:content>
	</item>
		<item>
		<title>Less rows priority</title>
		<link>http://blog.tabsstudio.com/2011/10/18/less-rows-priority/</link>
		<comments>http://blog.tabsstudio.com/2011/10/18/less-rows-priority/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 03:50:23 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1487</guid>
		<description><![CDATA[Sometimes you get tabs arranged in more rows than necessary: This is because the current tab layout algorithm first of all tries to minimize distracting tab movement between rows (keeping tab in the last position, reserving a row buffer for new tabs and changes in tab width). I&#8217;ve added the new LessRowsPriority property to let [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1487&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you get tabs arranged in more rows than necessary:<br />
<div id="attachment_1488" class="wp-caption aligncenter" style="width: 746px"><a href="http://tabsstudio.files.wordpress.com/2011/10/tabs-in-4-rows.png"><img src="http://tabsstudio.files.wordpress.com/2011/10/tabs-in-4-rows.png" alt="Tabs in 4 rows" title="Tabs in 4 rows" width="736" height="92" class="size-full wp-image-1488" /></a><p class="wp-caption-text">Tabs in 4 rows</p></div><br />
<div id="attachment_1489" class="wp-caption aligncenter" style="width: 746px"><a href="http://tabsstudio.files.wordpress.com/2011/10/the-same-tabs-in-3-rows.png"><img src="http://tabsstudio.files.wordpress.com/2011/10/the-same-tabs-in-3-rows.png" alt="The same tabs in 3 rows" title="The same tabs in 3 rows" width="736" height="70" class="size-full wp-image-1489" /></a><p class="wp-caption-text">The same tabs in 3 rows</p></div></p>
<p>
This is because the current tab layout algorithm first of all tries to minimize distracting tab movement between rows (keeping tab in the last position, reserving a row buffer for new tabs and changes in tab width).
</p>
<p>
I&#8217;ve added the new <b>LessRowsPriority</b> property to let you customize this behavior. (Remember also the <a href="http://blog.tabsstudio.com/2011/05/18/stable-tabs-layout/">RowBuffer</a> property.) The larger <b>LessRowsPriority</b> value the more actively Tabs Studio will try to minimize number of rows. It is a double with default value of 1. Value of 10 is kind of high priority and value of 100 &#8211; very high priority. You can set it in a custom style like this:
</p>
<pre>
&lt;Style TargetType="TabsStudio:Tabs" BasedOn="{StaticResource DefaultTabsStyle}"&gt;
  &lt;Setter Property="LessRowsPriority" Value="10"/&gt;
&lt;/Style&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1487&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/10/18/less-rows-priority/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/10/tabs-in-4-rows.png" medium="image">
			<media:title type="html">Tabs in 4 rows</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/10/the-same-tabs-in-3-rows.png" medium="image">
			<media:title type="html">The same tabs in 3 rows</media:title>
		</media:content>
	</item>
		<item>
		<title>Highlighting palette</title>
		<link>http://blog.tabsstudio.com/2011/07/17/highlighting-palette/</link>
		<comments>http://blog.tabsstudio.com/2011/07/17/highlighting-palette/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 15:38:21 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add-ins]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1422</guid>
		<description><![CDATA[I&#8217;ve added the ability to highlight tabs with different colors from Tabs Studio context menu: If you use just one color (still accessible with Ctrl+Click), but want to change it, the custom style is slightly different now (note the new HighlightIndex property): &#60;Style TargetType="TabsStudio:TabInternals" BasedOn="{StaticResource DefaultTabInternalsStyle}"&#62; &#60;Style.Triggers&#62; &#60;DataTrigger Binding="{Binding Path=(TabsStudioMarker:Properties.HighlightIndex), RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="1"&#62; &#60;Setter Property="Background"&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1422&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added the ability to highlight tabs with different colors from Tabs Studio context menu:<br />
<div id="attachment_1423" class="wp-caption aligncenter" style="width: 772px"><a href="http://tabsstudio.files.wordpress.com/2011/07/highlighting-colors-in-tabs-studio-context-menu.png"><img src="http://tabsstudio.files.wordpress.com/2011/07/highlighting-colors-in-tabs-studio-context-menu.png" alt="Highlighting colors in Tabs Studio context menu" title="Highlighting colors in Tabs Studio context menu" width="762" height="686" class="size-full wp-image-1423" /></a><p class="wp-caption-text">Highlighting colors in Tabs Studio context menu</p></div><br />
If you use just one color (still accessible with Ctrl+Click), but want to change it, the custom style is slightly different now (note the new <b>HighlightIndex</b> property):</p>
<pre>
&lt;Style TargetType="TabsStudio:TabInternals" BasedOn="{StaticResource DefaultTabInternalsStyle}"&gt;
    &lt;Style.Triggers&gt;
      &lt;DataTrigger Binding="{Binding Path=(TabsStudioMarker:Properties.HighlightIndex),
                 RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="1"&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                   &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1"&gt;
                       &lt;GradientStop Color="Transparent" Offset="0.9"/&gt;
                       &lt;GradientStop Color="Green" Offset="0.9"/&gt;
                   &lt;/LinearGradientBrush&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/DataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;
</pre>
<p>In this <b>Marker</b> update I&#8217;ve also removed a small gradient transition in underline, fixed occasional loss of first tab highlighting after loading a solution in VS 2010, slightly changed highlight commands placement in the context menu.</p>
<p>
Download link: <a href="http://www.tabsstudio.com/download/addins/Marker_104.zip">Marker v1.0.4</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1422&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/07/17/highlighting-palette/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/07/highlighting-colors-in-tabs-studio-context-menu.png" medium="image">
			<media:title type="html">Highlighting colors in Tabs Studio context menu</media:title>
		</media:content>
	</item>
		<item>
		<title>Vertical scrollbar for the separate tabs window</title>
		<link>http://blog.tabsstudio.com/2011/06/11/vertical-scrollbar-for-the-separate-tabs-window/</link>
		<comments>http://blog.tabsstudio.com/2011/06/11/vertical-scrollbar-for-the-separate-tabs-window/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 04:53:44 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1414</guid>
		<description><![CDATA[When using the separate tabs window in stack mode, sometime you can open more tabs than fit in the docked window. One possible solution is to add a vertical scrollbar to scroll through the windows: The following style adds ScrollViewer with vertical scroll bar visibility set to Auto, i.e. it is visible only when tabs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1414&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When using the separate tabs window in stack mode, sometime you can open more tabs than fit in the docked window.  One possible solution is to add a vertical scrollbar to scroll through the windows:<br />
<div id="attachment_1415" class="wp-caption aligncenter" style="width: 873px"><a href="http://tabsstudio.files.wordpress.com/2011/06/tabs-window-with-a-vertical-scrollbar.png"><img src="http://tabsstudio.files.wordpress.com/2011/06/tabs-window-with-a-vertical-scrollbar.png" alt="Tabs window with a vertical scrollbar" title="Tabs window with a vertical scrollbar" width="863" height="455" class="size-full wp-image-1415" /></a><p class="wp-caption-text">Tabs window with a vertical scrollbar</p></div><br />
The following style adds <b>ScrollViewer</b> with vertical scroll bar visibility set to <b>Auto</b>, i.e. it is visible only when tabs don&#8217;t fit without scrolling:</p>
<pre>
&lt;Style TargetType="TabsStudio:TabsHost" BasedOn="{StaticResource DefaultTabsHostStyle}"&gt;
  &lt;Setter Property="Template"&gt;
    &lt;Setter.Value&gt;
      &lt;ControlTemplate TargetType="{x:Type TabsStudio:TabsHost}"&gt;
        &lt;ScrollViewer HorizontalScrollBarVisibility="Disabled"
                                VerticalScrollBarVisibility="Auto"&gt;
          &lt;Grid&gt;
            &lt;Rectangle Width="{TemplateBinding Width}"
                       Height="{TemplateBinding Height}"
                       Fill="{TemplateBinding Background}"/&gt;
            &lt;ContentPresenter/&gt;
          &lt;/Grid&gt;
        &lt;/ScrollViewer&gt;
      &lt;/ControlTemplate&gt;
    &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
&lt;/Style&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1414&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/06/11/vertical-scrollbar-for-the-separate-tabs-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/06/tabs-window-with-a-vertical-scrollbar.png" medium="image">
			<media:title type="html">Tabs window with a vertical scrollbar</media:title>
		</media:content>
	</item>
		<item>
		<title>Special color for designer tabs</title>
		<link>http://blog.tabsstudio.com/2011/05/05/special-color-for-designer-tabs/</link>
		<comments>http://blog.tabsstudio.com/2011/05/05/special-color-for-designer-tabs/#comments</comments>
		<pubDate>Thu, 05 May 2011 11:27:56 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1367</guid>
		<description><![CDATA[Usually you set color for tabs using the tab name and project name regular expressions in the Tab Coloring Rule dialog. If you want to color tabs by type (for example .cs or .xaml) you can use the document paths regex. But then there are form designer [Design] tabs that can&#8217;t be matched using the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1367&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Usually you set color for tabs using the tab name and project name regular expressions in the <b>Tab Coloring Rule</b> dialog. If you want to color tabs by type (for example <i>.cs</i> or <i>.xaml</i>) you can use the document paths regex. But then there are form designer <i>[Design]</i> tabs that can&#8217;t be matched using the existing rules.</p>
<p>
I&#8217;ve added the <b>Tab extensions regex</b> rule that complements the <b>Tab name regex</b> rule and lets you assign tab background depending on opened extensions in a tab group:
</p>
<p><div id="attachment_1368" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/05/tab-coloring-rule-for-designer-tabs.png"><img src="http://tabsstudio.files.wordpress.com/2011/05/tab-coloring-rule-for-designer-tabs.png" alt="Tab coloring rule for designer tabs" title="Tab coloring rule for designer tabs" width="570" height="483" class="size-full wp-image-1368" /></a><p class="wp-caption-text">Tab coloring rule for designer tabs</p></div><br />
<div id="attachment_1369" class="wp-caption aligncenter" style="width: 659px"><a href="http://tabsstudio.files.wordpress.com/2011/05/designer-tabs-with-a-special-color.png"><img src="http://tabsstudio.files.wordpress.com/2011/05/designer-tabs-with-a-special-color.png" alt="Designer tabs with a special color" title="Designer tabs with a special color" width="649" height="381" class="size-full wp-image-1369" /></a><p class="wp-caption-text">Designer tabs with a special color</p></div></p>
<p>
I&#8217;ve added the <b>TabExtensions</b> property to the <b>Tab</b> control that consists of the extensions list separated by &#8216;$&#8217;. For example, &#8220;Form2 .cs .cs [Design]&#8221; tab has &#8220;TabName=Form2&#8243; and &#8220;TabExtensions=.cs$.cs [Design]$&#8221;. Note, that a single tab like &#8220;Class1.cs&#8221; still has the name &#8220;Class1&#8243; and the extensions &#8220;.cs$&#8221;.
</p>
<p>Download link: <a href="http://www.tabsstudio.com/download/TabsStudio_235.msi">Tabs Studio v2.3.5</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1367&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/05/05/special-color-for-designer-tabs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/05/tab-coloring-rule-for-designer-tabs.png" medium="image">
			<media:title type="html">Tab coloring rule for designer tabs</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/05/designer-tabs-with-a-special-color.png" medium="image">
			<media:title type="html">Designer tabs with a special color</media:title>
		</media:content>
	</item>
		<item>
		<title>Highlight tabs with Marker</title>
		<link>http://blog.tabsstudio.com/2011/03/04/highlight-tabs-with-marker/</link>
		<comments>http://blog.tabsstudio.com/2011/03/04/highlight-tabs-with-marker/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 09:42:30 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add-ins]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1278</guid>
		<description><![CDATA[David Peris suggested an interesting idea for Tabs Studio: &#8220;For people like me working in huge solutions, with a bunch of projects and files, sometimes we need to highlight a few tabs, temporarily, to quickly come back to them. Color rules would make the trick if the tabs share some criteria, but they can be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1278&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>David Peris suggested an interesting idea for Tabs Studio: &#8220;For people like me working in huge solutions, with a bunch of projects and files, sometimes we need to highlight a few tabs, temporarily, to quickly come back to them.  Color rules would make the trick if the tabs share some criteria, but they can be slow to setup just for temporary highlighting. It would be great to be able to quick color some tabs, like for example Ctrl+click a tab would highlight it, and Ctrl+click again would de-highlight it. Maybe an option in the right click menu as &#8220;Remove highlights&#8221; or something like that would be the perfect complement to this option.&#8221;</p>
<p>
I&#8217;ve created the new <b>Marker</b> add-in for this functionality. Ctrl+Click a tab highlights it and Ctrl+Click again removes highlighting. No additional context menu options yet, but it can be added later:
</p>
<div id="attachment_1279" class="wp-caption aligncenter" style="width: 894px"><a href="http://tabsstudio.files.wordpress.com/2011/03/several-tabs-highlighted-with-the-default-style.png"><img src="http://tabsstudio.files.wordpress.com/2011/03/several-tabs-highlighted-with-the-default-style.png" alt="Several tabs highlighted with the default style" title="Several tabs highlighted with the default style" width="884" height="205" class="size-full wp-image-1279" /></a><p class="wp-caption-text">Several tabs highlighted with the default style</p></div>
<p>
The default highlighting style provided by <b>Marker</b> decorates TabInternals with the red gradient background. You can choose to decorate another tab element or just change the highlighting color in a custom Tabs Studio style:
</p>
<pre>
&lt;Style TargetType="TabsStudio:TabInternals" BasedOn="{StaticResource DefaultTabInternalsStyle}"&gt;
    &lt;Style.Triggers&gt;
      &lt;DataTrigger Binding="{Binding Path=(TabsStudioMarker:Properties.IsHighlighted),
                 RelativeSource={RelativeSource AncestorType=TabsStudio:Tab}}" Value="True"&gt;
          &lt;Setter Property="Background"&gt;
              &lt;Setter.Value&gt;
                   &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1"&gt;
                       &lt;GradientStop Color="Transparent" Offset="0.8"/&gt;
                       &lt;GradientStop Color="Green" Offset="1"/&gt;
                   &lt;/LinearGradientBrush&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/DataTrigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;
</pre>
<div id="attachment_1280" class="wp-caption aligncenter" style="width: 528px"><a href="http://tabsstudio.files.wordpress.com/2011/03/tabs-highlighted-with-the-custom-green-color.png"><img src="http://tabsstudio.files.wordpress.com/2011/03/tabs-highlighted-with-the-custom-green-color.png" alt="Tabs highlighted with the custom green color" title="Tabs highlighted with the custom green color" width="518" height="66" class="size-full wp-image-1280" /></a><p class="wp-caption-text">Tabs highlighted with the custom green color</p></div>
<p>
Download link: <a href="http://www.tabsstudio.com/download/addins/Marker_100.zip">Marker v1.0.0</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1278&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/03/04/highlight-tabs-with-marker/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/03/several-tabs-highlighted-with-the-default-style.png" medium="image">
			<media:title type="html">Several tabs highlighted with the default style</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/03/tabs-highlighted-with-the-custom-green-color.png" medium="image">
			<media:title type="html">Tabs highlighted with the custom green color</media:title>
		</media:content>
	</item>
		<item>
		<title>Horizontal tab alignment</title>
		<link>http://blog.tabsstudio.com/2011/02/26/horizontal-tab-alignment/</link>
		<comments>http://blog.tabsstudio.com/2011/02/26/horizontal-tab-alignment/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 16:07:17 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1234</guid>
		<description><![CDATA[In Visual Studio 2010 horizontal tab alignment is a little off, note the close tab button is near the tab name instead of being docked to the right: In Visual Studio 2008 and even in the Visual Studio 2010 floating tool window tab alignment is correct: Turns out horizontal tab alignment is Stretch by default [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1234&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Visual Studio 2010 horizontal tab alignment is a little off, note the close tab button is near the tab name instead of being docked to the right:<br />
<div id="attachment_1235" class="wp-caption aligncenter" style="width: 355px"><a href="http://tabsstudio.files.wordpress.com/2011/02/left-tab-alignment-in-visual-studio-2010.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/left-tab-alignment-in-visual-studio-2010.png" alt="Left tab alignment in Visual Studio 2010" title="Left tab alignment in Visual Studio 2010" width="345" height="217" class="size-full wp-image-1235" /></a><p class="wp-caption-text">Left tab alignment in Visual Studio 2010</p></div><br />
In Visual Studio 2008 and even in the Visual Studio 2010 floating tool window tab alignment is correct:<br />
<div id="attachment_1236" class="wp-caption aligncenter" style="width: 249px"><a href="http://tabsstudio.files.wordpress.com/2011/02/stretch-tab-alignment-in-the-floating-visual-studio-2010-tool-window.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/stretch-tab-alignment-in-the-floating-visual-studio-2010-tool-window.png" alt="Stretch tab alignment in the floating Visual Studio 2010 tool window" title="Stretch tab alignment in the floating Visual Studio 2010 tool window" width="239" height="74" class="size-full wp-image-1236" /></a><p class="wp-caption-text">Stretch tab alignment in the floating Visual Studio 2010 tool window</p></div><br />
Turns out horizontal tab alignment is <b>Stretch</b> by default in <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.tabitem.aspx">TabItem</a>&#8216;s control template, but also inherited from the <b>HorizontalContentAlignment</b> property of a <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.aspx">ItemsControl</a> visual ancestor. Tabs Studio doesn&#8217;t use <b>ItemsControl</b> (this is why in Visual Studio 2008 and in the separate Visual Studio 2010 window tab alignment is correct), but there is <b>ItemsControl</b> with <b>HorizontalContentAlignment=Left</b> in Visual Studio IDE that is found when tabs are above the code editor.</p>
<p>
I&#8217;ve added <b>ItemsControl</b> to <a href="http://www.tabsstudio.com/documentation/style.html#Specification">Tabs Studio controls tree</a>:
</p>
<pre>
TabsHost : ContentControl
|
 - TabsItemsControl : ItemsControl
   |
    - Tabs : Panel
     |
      - Tab : TabItem
</pre>
<p>With the default style:</p>
<pre>
&lt;Style x:Key="DefaultTabsItemsControlStyle0" TargetType="TabsStudio:TabsItemsControl"&gt;
  &lt;Setter Property="HorizontalContentAlignment" Value="Stretch"/&gt;
&lt;/Style&gt;
</pre>
<p>In the next Tabs Studio release, horizontal tab alignment is <b>Stretch</b> by default in all scenarios:<br />
<div id="attachment_1237" class="wp-caption aligncenter" style="width: 363px"><a href="http://tabsstudio.files.wordpress.com/2011/02/fixed-stretch-tab-alignment-in-visual-studio-2010.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/fixed-stretch-tab-alignment-in-visual-studio-2010.png" alt="Fixed stretch tab alignment in Visual Studio 2010" title="Fixed stretch tab alignment in Visual Studio 2010" width="353" height="219" class="size-full wp-image-1237" /></a><p class="wp-caption-text">Fixed stretch tab alignment in Visual Studio 2010</p></div><br />
If you prefer old left alignment, you will be able to set it with the following custom style:</p>
<pre>
&lt;Style TargetType="TabsStudio:TabsItemsControl" BasedOn="{StaticResource DefaultTabsItemsControlStyle}"&gt;
  &lt;Setter Property="HorizontalContentAlignment" Value="Left"/&gt;
&lt;/Style&gt;
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1234&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/02/26/horizontal-tab-alignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/left-tab-alignment-in-visual-studio-2010.png" medium="image">
			<media:title type="html">Left tab alignment in Visual Studio 2010</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/stretch-tab-alignment-in-the-floating-visual-studio-2010-tool-window.png" medium="image">
			<media:title type="html">Stretch tab alignment in the floating Visual Studio 2010 tool window</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/fixed-stretch-tab-alignment-in-visual-studio-2010.png" medium="image">
			<media:title type="html">Fixed stretch tab alignment in Visual Studio 2010</media:title>
		</media:content>
	</item>
		<item>
		<title>Selected tab overlay</title>
		<link>http://blog.tabsstudio.com/2011/02/25/selected-tab-overlay/</link>
		<comments>http://blog.tabsstudio.com/2011/02/25/selected-tab-overlay/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 10:23:42 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1213</guid>
		<description><![CDATA[If you use custom colors for your tabs, for example, different colors for tabs from different projects, what do you do with the selected tab from a particular project? In the simplest setup you create a project coloring rule that excludes the selected tab and the selected tab looks the same no matter which project [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1213&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use custom colors for your tabs, for example, different colors for tabs from different projects, what do you do with the selected tab from a particular project? In the simplest setup you create a project coloring rule that excludes the selected tab and the selected tab looks the same no matter which project it belongs to:<br />
<div id="attachment_1214" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project.png" alt="Tab coloring rule for the WpfApplication5 project" title="Tab coloring rule for the WpfApplication5 project" width="570" height="453" class="size-full wp-image-1214" /></a><p class="wp-caption-text">Tab coloring rule for the WpfApplication5 project</p></div><br />
<div id="attachment_1215" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication6-project.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication6-project.png" alt="Tab coloring rule for the WpfApplication6 project" title="Tab coloring rule for the WpfApplication6 project" width="570" height="453" class="size-full wp-image-1215" /></a><p class="wp-caption-text">Tab coloring rule for the WpfApplication6 project</p></div><br />
<div id="attachment_1216" class="wp-caption aligncenter" style="width: 875px"><a href="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project.png" alt="Selected tab from the WpfApplication5 project" title="Selected tab from the WpfApplication5 project" width="865" height="604" class="size-full wp-image-1216" /></a><p class="wp-caption-text">Selected tab from the WpfApplication5 project</p></div><br />
<div id="attachment_1217" class="wp-caption aligncenter" style="width: 875px"><a href="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication6-project.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication6-project.png" alt="Selected tab from the WpfApplication6 project" title="Selected tab from the WpfApplication6 project" width="865" height="604" class="size-full wp-image-1217" /></a><p class="wp-caption-text">Selected tab from the WpfApplication6 project</p></div>If you get used to project colors, you may want to show selected tab&#8217;s project too. You can add an additional selected tab rule for each project:<br />
<div id="attachment_1218" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-selected-tab-in-the-wpfapplication5-project.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-selected-tab-in-the-wpfapplication5-project.png" alt="Tab coloring rule for the selected tab in the WpfApplication5 project" title="Tab coloring rule for the selected tab in the WpfApplication5 project" width="570" height="453" class="size-full wp-image-1218" /></a><p class="wp-caption-text">Tab coloring rule for the selected tab in the WpfApplication5 project</p></div><br />
<div id="attachment_1219" class="wp-caption aligncenter" style="width: 479px"><a href="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project-showing-projects-color.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project-showing-projects-color.png" alt="Selected tab from the WpfApplication5 project showing project&#039;s color" title="Selected tab from the WpfApplication5 project showing project&#039;s color" width="469" height="22" class="size-full wp-image-1219" /></a><p class="wp-caption-text">Selected tab from the WpfApplication5 project showing project&#039;s color</p></div><br />
The obvious disadvantage is that now you have to provide two coloring rules for each project (three rules if you use distinct color for the previously selected tab too). It would be nice to specify a selected tab overlay only once. Tabs Studio doesn&#8217;t currently support coloring rule overlays or rule combinations, but you can use a custom style for the <a href="http://www.tabsstudio.com/documentation/style.html#Specification">TabInternals</a> element to achieve the same result. First you change the tab coloring rules for the WpfApplication5 and WpfApplication6 projects to include the tab selected state:<br />
<div id="attachment_1220" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project-including-the-tab-selected-state.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project-including-the-tab-selected-state.png" alt="Tab coloring rule for the WpfApplication5 project including the tab selected state" title="Tab coloring rule for the WpfApplication5 project including the tab selected state" width="570" height="453" class="size-full wp-image-1220" /></a><p class="wp-caption-text">Tab coloring rule for the WpfApplication5 project including the tab selected state</p></div><br />
Then add the following custom style:<br />
<div id="attachment_1221" class="wp-caption aligncenter" style="width: 703px"><a href="http://tabsstudio.files.wordpress.com/2011/02/simple-tabinternals-overlay-for-the-selected-tab.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/simple-tabinternals-overlay-for-the-selected-tab.png" alt="Simple TabInternals overlay for the selected tab" title="Simple TabInternals overlay for the selected tab" width="693" height="528" class="size-full wp-image-1221" /></a><p class="wp-caption-text">Simple TabInternals overlay for the selected tab</p></div><br />
Now this overlay works for all projects, but the red bar has some undesired padding around it. To remove this padding we remove <b>Tab</b>&#8216;s padding, add <b>TabNameGroup</b>&#8216;s left padding and add <b>CloseTabButton</b>&#8216;s right padding (note that you need to uncomment one of the three <b>CloseTabButton</b> styles depending on your close tab button presentation setting):</p>
<pre>
&lt;Style TargetType="TabsStudio:TabInternals" BasedOn="{StaticResource DefaultTabInternalsStyle}"&gt;
  &lt;Setter Property="Margin" Value="-1,-1,-1,0"/&gt;
  &lt;Style.Triggers&gt;
    &lt;Trigger Property="IsTabSelected" Value="True"&gt;
      &lt;Setter Property="Background"&gt;
      &lt;Setter.Value&gt;
        &lt;LinearGradientBrush StartPoint="0,0" EndPoint="0,1"&gt;
          &lt;GradientStop Color="Red" Offset="0"/&gt;
          &lt;GradientStop Color="Transparent" Offset="0.3"/&gt;
        &lt;/LinearGradientBrush&gt;
      &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
    &lt;/Trigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;

&lt;Style TargetType="TabsStudio:Tab" BasedOn="{StaticResource DefaultTabStyle}"&gt;
  &lt;Setter Property="Padding" Value="0,0,0,1"/&gt;
&lt;/Style&gt;

&lt;Style TargetType="TabsStudio:TabNameGroup" BasedOn="{StaticResource DefaultTabNameGroupStyle}"&gt;
  &lt;Setter Property="Margin" Value="5,0,0,0"/&gt;
&lt;/Style&gt;

&lt;!--Close tab button: Show on selected tab--&gt;
&lt;Style TargetType="TabsStudio:CloseTabButton" BasedOn="{StaticResource DefaultCloseTabButtonStyle}"&gt;
  &lt;Setter Property="Margin" Value="2,0,1,0"/&gt;
  &lt;Style.Triggers&gt;
    &lt;Trigger Property="IsTabSelected" Value="False"&gt;
      &lt;Setter Property="Width" Value="4"/&gt;
      &lt;Setter Property="Visibility" Value="Hidden"/&gt;
    &lt;/Trigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;

&lt;!--Close tab button: Show on all tabs--&gt;
&lt;!--&lt;Style TargetType="TabsStudio:CloseTabButton" BasedOn="{StaticResource DefaultCloseTabButtonStyle}"&gt;
  &lt;Setter Property="Margin" Value="2,0,1,0"/&gt;
&lt;/Style&gt;--&gt;

&lt;!--Close tab button: Don't show--&gt;
&lt;!--&lt;Style TargetType="TabsStudio:CloseTabButton" BasedOn="{StaticResource DefaultCloseTabButtonStyle}"&gt;
  &lt;Setter Property="Width" Value="9"/&gt;
  &lt;Setter Property="Visibility" Value="Hidden"/&gt;
  &lt;Style.Triggers&gt;
    &lt;Trigger Property="IsTabSelected" Value="False"&gt;
      &lt;Setter Property="Visibility" Value="Hidden"/&gt;
    &lt;/Trigger&gt;
  &lt;/Style.Triggers&gt;
&lt;/Style&gt;--&gt;
</pre>
<div id="attachment_1222" class="wp-caption aligncenter" style="width: 469px"><a href="http://tabsstudio.files.wordpress.com/2011/02/final-selected-tab-overlay.png"><img src="http://tabsstudio.files.wordpress.com/2011/02/final-selected-tab-overlay.png" alt="Final selected tab overlay" title="Final selected tab overlay" width="459" height="20" class="size-full wp-image-1222" /></a><p class="wp-caption-text">Final selected tab overlay</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1213&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2011/02/25/selected-tab-overlay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project.png" medium="image">
			<media:title type="html">Tab coloring rule for the WpfApplication5 project</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication6-project.png" medium="image">
			<media:title type="html">Tab coloring rule for the WpfApplication6 project</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project.png" medium="image">
			<media:title type="html">Selected tab from the WpfApplication5 project</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication6-project.png" medium="image">
			<media:title type="html">Selected tab from the WpfApplication6 project</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-selected-tab-in-the-wpfapplication5-project.png" medium="image">
			<media:title type="html">Tab coloring rule for the selected tab in the WpfApplication5 project</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/selected-tab-from-the-wpfapplication5-project-showing-projects-color.png" medium="image">
			<media:title type="html">Selected tab from the WpfApplication5 project showing project&#039;s color</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/tab-coloring-rule-for-the-wpfapplication5-project-including-the-tab-selected-state.png" medium="image">
			<media:title type="html">Tab coloring rule for the WpfApplication5 project including the tab selected state</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/simple-tabinternals-overlay-for-the-selected-tab.png" medium="image">
			<media:title type="html">Simple TabInternals overlay for the selected tab</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2011/02/final-selected-tab-overlay.png" medium="image">
			<media:title type="html">Final selected tab overlay</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating a style from add-ins</title>
		<link>http://blog.tabsstudio.com/2010/11/18/updating-a-style-from-add-ins/</link>
		<comments>http://blog.tabsstudio.com/2010/11/18/updating-a-style-from-add-ins/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 06:09:37 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add-ins]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1137</guid>
		<description><![CDATA[Continuing work on reducing necessity to manually craft a XAML style, I’ve added the ability to update a style from an add-in. For example, previously for SingleRow and Shaper add-ins you needed to copy sample styles from documentation and to use them together you needed to merge these styles. Newly updated SingleRow and Shaper programmatically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1137&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Continuing work on reducing necessity to manually craft a XAML style, I’ve added the ability to update a style from an add-in. For example, previously for <b>SingleRow</b> and <b>Shaper</b> add-ins you needed to copy sample styles from documentation and to use them together you needed to merge these styles. Newly updated <b>SingleRow</b> and <b>Shaper</b> programmatically apply default styles not cluttering the custom style:<br />
<div id="attachment_1139" class="wp-caption aligncenter" style="width: 446px"><a href="http://tabsstudio.files.wordpress.com/2010/11/default-singlerow-and-shaper-styles.png"><img src="http://tabsstudio.files.wordpress.com/2010/11/default-singlerow-and-shaper-styles.png" alt="Default SingleRow and Shaper styles" title="Default SingleRow and Shaper styles" width="436" height="53" class="size-full wp-image-1139" /></a><p class="wp-caption-text">Default SingleRow and Shaper styles</p></div><br />
The only thing missing from the sample <a href="http://www.tabsstudio.com/download/styles/chrome.txt">Chrome style</a> for <b>Shaper</b> is the grey line under the tabs, as currently only setters and triggers can be automatically merged, not control templates. To make it perfect, the following custom style can be used:</p>
<pre>
&lt;Style TargetType="TabsStudio:TabsHost" BasedOn="{StaticResource DefaultTabsHostStyle}"&gt;
  &lt;Setter Property="Template"&gt;
    &lt;Setter.Value&gt;
      &lt;ControlTemplate TargetType="{x:Type TabsStudio:TabsHost}"&gt;
       &lt;StackPanel&gt;
        &lt;Grid Panel.ZIndex="1"&gt;
          &lt;Rectangle Width="{TemplateBinding Width}"
                     Height="{TemplateBinding Height}"
                     Fill="{TemplateBinding Background}"/&gt;
          &lt;Grid&gt;
            &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="*"/&gt;
              &lt;ColumnDefinition Width="Auto"/&gt;
            &lt;/Grid.ColumnDefinitions&gt;
            &lt;ContentPresenter Grid.Column="0"/&gt;
            &lt;TabsStudioSingleRow:HiddenTabs Grid.Column="1" TabsPanel="{TemplateBinding ContentControl.Content}"/&gt;
          &lt;/Grid&gt;
        &lt;/Grid&gt;
      &lt;Border Height="1" Background="#93979D"/&gt;
      &lt;/StackPanel&gt;
      &lt;/ControlTemplate&gt;
    &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
&lt;/Style&gt;
</pre>
<div id="attachment_1138" class="wp-caption aligncenter" style="width: 446px"><a href="http://tabsstudio.files.wordpress.com/2010/11/the-manually-merged-tabshost-style-for-singlerow-and-shaper.png"><img src="http://tabsstudio.files.wordpress.com/2010/11/the-manually-merged-tabshost-style-for-singlerow-and-shaper.png" alt="The manually merged TabsHost style for SingleRow and Shaper" title="The manually merged TabsHost style for SingleRow and Shaper" width="436" height="53" class="size-full wp-image-1138" /></a><p class="wp-caption-text">The manually merged TabsHost style for SingleRow and Shaper</p></div>
<p>Internally, the <i>void UpdatePresentationStyles(string key, Presentation presentation)</i> method was added to the <i>TabsStudioExt.ITabsStudioEngine</i> interface. It is possible to update styles dynamically, but right now <b>SingleRow</b> and <b>Shaper</b> do it only once in the <i>OnConnection</i> handler.</p>
<p>Triggers and setters for default Tabs Studio controls are added to the <b>Styles</b> property. For new controls (like <i>TabsStudioSingleRow:HiddenTabs</i>) a style resource and a default style usage are provided in the <b>Presentation</b> constructor:</p>
<pre>
private void UpdatePresentationStyle()
{
    TabsStudioExt.Presentation presentation = new TabsStudioExt.Presentation(
        LoadString("HiddenTabsStyle.xml"), LoadString("HiddenTabsUsage.xml"));
    {
        TabsStudioExt.PresentationStyle style = new TabsStudioExt.PresentationStyle();
        style.Triggers.Add(LoadString("TabTriggers.xml"));
        presentation.Styles.Add("TabsStudio:Tab", style);
    }
    {
        TabsStudioExt.PresentationStyle style = new TabsStudioExt.PresentationStyle();
        style.Setters.Add(LoadString("TabsHostTemplate.xml"));
        presentation.Styles.Add("TabsStudio:TabsHost", style);
    }
    engine.UpdatePresentationStyles("SingleRow", presentation);
}
</pre>
<p>The style parameter in the <b>Presentation</b> constructor can also add static resources for use in tab coloring rules. Theoretically it may be a custom brush or a generated color. These changes are included in the upcoming Tabs Studio release.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1137&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2010/11/18/updating-a-style-from-add-ins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2010/11/default-singlerow-and-shaper-styles.png" medium="image">
			<media:title type="html">Default SingleRow and Shaper styles</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2010/11/the-manually-merged-tabshost-style-for-singlerow-and-shaper.png" medium="image">
			<media:title type="html">The manually merged TabsHost style for SingleRow and Shaper</media:title>
		</media:content>
	</item>
		<item>
		<title>More tab coloring options</title>
		<link>http://blog.tabsstudio.com/2010/11/15/more-tab-coloring-options/</link>
		<comments>http://blog.tabsstudio.com/2010/11/15/more-tab-coloring-options/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:00:42 +0000</pubDate>
		<dc:creator>Sergey Vlasov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://blog.tabsstudio.com/?p=1124</guid>
		<description><![CDATA[I&#8217;ve added Document paths regex and Custom conditions options to the Tab Coloring Rule dialog: Document paths regex uses the newly added Paths tab item property consisting of document paths ending with &#8216;$&#8217;. For a tab &#8220;App .xaml .xaml.cs&#8221; Paths is something like &#8220;c:\Projects\WpfApplication1\app.xaml$c:\Projects\WpfApplication1\app.xaml.cs$&#8221;. If you want to set a color for all xaml and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1124&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added <b>Document paths regex</b> and <b>Custom conditions</b> options to the <b>Tab Coloring Rule</b> dialog:<br />
<div id="attachment_1125" class="wp-caption aligncenter" style="width: 580px"><a href="http://tabsstudio.files.wordpress.com/2010/11/tab-coloring-rule-dialog-with-new-options.png"><img src="http://tabsstudio.files.wordpress.com/2010/11/tab-coloring-rule-dialog-with-new-options.png" alt="The Tab Coloring Rule dialog with new options" title="The Tab Coloring Rule dialog with new options" width="570" height="453" class="size-full wp-image-1125" /></a><p class="wp-caption-text">The Tab Coloring Rule dialog with new options</p></div></p>
<p><b>Document paths regex</b> uses the newly added <b>Paths</b> tab item property consisting of document paths ending with &#8216;$&#8217;. For a tab &#8220;App .xaml .xaml.cs&#8221; <b>Paths</b> is something like &#8220;c:\Projects\WpfApplication1\app.xaml$c:\Projects\WpfApplication1\app.xaml.cs$&#8221;. If you want to set a color for all xaml and xaml.cs tabs, <b>Document paths regex</b> could be the following expression:</p>
<pre>\.(xaml|xaml\.cs)\$</pre>
<p>The <b>Custom conditions</b> option allows you to switch on tab item properties not listed in this dialog. For example, the <b>MVCGroup</b> add-in adds <b>IsController</b> and <b>IsView</b> attached tab properties. To color controller tabs you can use the following custom condition:</p>
<pre>
&lt;Condition Binding="{Binding Path=(TabsStudioMvcGroup:Properties.IsController),
  RelativeSource={RelativeSource Self}}" Value="True"/&gt;
</pre>
<p>Another example is for the case when you want to change the color of a tab in Visual Studio 2010 when tabs are not focused:</p>
<pre>
&lt;Condition Binding="{Binding Path=IsGroupFocused, RelativeSource={RelativeSource Self}}" Value="False"/&gt;
</pre>
<p>Download link: <a href="http://www.tabsstudio.com/download/TabsStudio_217.msi">TabsStudio v2.1.7</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tabsstudio.wordpress.com/1124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tabsstudio.wordpress.com/1124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tabsstudio.wordpress.com/1124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.tabsstudio.com&amp;blog=7500212&amp;post=1124&amp;subd=tabsstudio&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.tabsstudio.com/2010/11/15/more-tab-coloring-options/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/34b5ec4a143dd4a12a8be0a65f71b0df?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">svprogramming</media:title>
		</media:content>

		<media:content url="http://tabsstudio.files.wordpress.com/2010/11/tab-coloring-rule-dialog-with-new-options.png" medium="image">
			<media:title type="html">The Tab Coloring Rule dialog with new options</media:title>
		</media:content>
	</item>
	</channel>
</rss>
