Tabs Studio Blog (organizing Visual Studio document tabs)

September 27, 2011

Visual Studio 11 Developer Preview support

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 7:27 pm

I’ve added basic support for Visual Studio 11 Developer Preview – all tabs functionality that was available in VS 2010 is now available in VS 11.

The new preview tab is displayed as a normal tab, but you can see the blue under line when it is selected. To manually promote this tab you can use the Window menu and the keyboard shortcut (btw this screenshot was made on Windows 8):

Promote preview tab command in Visual Studio menu

Promote preview tab command in Visual Studio menu

I don’t know how useful the preview tab will be. It can be turned off in Visual Studio options. On the other hand, floating tab groups are definitely useful and I will try my best to support them in a next release.

I noticed one new problem in VS 11 – tabs in a separate window can get light grey background inheriting style from a Visual Studio control up in the tree. To work around this, use the following custom style (it is the same example style that disables blue inactive tab background on mouse over):

<Style TargetType="TabsStudio:Tab" BasedOn="{StaticResource DefaultTabStyle}">
  <Setter Property="Template">
    <Setter.Value>

      <ControlTemplate TargetType="{x:Type TabsStudio:Tab}">
        <Border Background="{TemplateBinding Background}" Padding="5,1,5,1" 
                      BorderThickness="1,1,1,0" BorderBrush="Gray">
        <ContentPresenter Name="Content" ContentSource="Header"
              HorizontalAlignment="{Binding Path=HorizontalContentAlignment, 
                RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
        </Border>
      </ControlTemplate>
    </Setter.Value>

  </Setter>
</Style>

Download link: Tabs Studio v2.5.0.

Blog at WordPress.com.