I’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 ‘$’. For a tab “App .xaml .xaml.cs” Paths is something like “c:\Projects\WpfApplication1\app.xaml$c:\Projects\WpfApplication1\app.xaml.cs$”. If you want to set a color for all xaml and xaml.cs tabs, Document paths regex could be the following expression:
\.(xaml|xaml\.cs)\$
The Custom conditions option allows you to switch on tab item properties not listed in this dialog. For example, the MVCGroup add-in adds IsController and IsView attached tab properties. To color controller tabs you can use the following custom condition:
<Condition Binding="{Binding Path=(TabsStudioMvcGroup:Properties.IsController), RelativeSource={RelativeSource Self}}" Value="True"/>
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:
<Condition Binding="{Binding Path=IsGroupFocused, RelativeSource={RelativeSource Self}}" Value="False"/>
Download link: TabsStudio v2.1.7.
Thank for the functionnality 🙂
Comment by Laurent — November 16, 2010 @ 5:39 am