Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>When I had the same purpose, I used Reflector (with <a href="http://reflectoraddins.codeplex.com/wikipage?title=BamlViewer&amp;referringTitle=Home" rel="nofollow noreferrer">BAML Viewer Add-in</a>) and <a href="http://visualstudiogallery.msdn.microsoft.com/20cd93a2-c435-4d00-a797-499f16402378/" rel="nofollow noreferrer">this color editor</a></p> <p>The styles and templates of the VS controls are located at the path <code>(Path of VS2010)\Common7\IDE\en\</code>. Necessary file is <code>Microsoft.VisualStudio.Shell.UI.Internal.resources.dll</code></p> <p>If to expand this library in BAML Viewer, there will be many files, but the most useful are listed in the file themes/generic.xaml.</p> <p>They are:</p> <ul> <li>Styles/MainWindowStyle.xaml - mark-up of the main window.</li> <li>Styles/CommandMenuStyle.xaml - styles of the menu, the toolbar, the combobox.</li> <li>Styles/StandardContextMenuStyle.xaml - style of the context menu.</li> </ul> <p>For example, if you open MainWindowsStyle.xaml, you will find this code:</p> <pre><code>&lt;Setter x:Uid="Setter_26" Property="Background" Value="{DynamicResource {x:Static EnvironmentBackgroundGradientKey}}" /&gt; </code></pre> <p>Now install VS Color theme editor, in Visual Studio open Theme -> Customize Colors -> Default. <img src="https://i.stack.imgur.com/3pHYL.png" alt="enter image description here"> The key <code>EnvironmentBackgroundGradient</code> has 4 items in the list. It can be written in the following way:</p> <pre><code>&lt;LinearGradientBrush x:Key="EnvironmentBackgroundGradient" StartPoint="0.5,0" EndPoint="0.5,1"&gt; &lt;GradientStop Color="#293955"/&gt; &lt;GradientStop Color="#35496a" Offset="0.5"/&gt; &lt;GradientStop Color="#35496a" Offset="0.5"/&gt; &lt;GradientStop Color="#293955" Offset="1"/&gt; &lt;/LinearGradientBrush&gt; </code></pre> <p>Probably, these colors are explained somewhere in detail, but I haven't found this, so I used Reflector.</p> <p>Another assemblies that can be useful:</p> <ul> <li>en\Microsoft.VisualStudio.Platform.WindowManagement.resources.dll - styles of the TabControl and DockManager</li> <li>PrivateAssemblies\Microsoft.VisualStudio.ExtensionsExplorer.UI.dll - selection of a new project</li> </ul> <p>And <a href="https://stackoverflow.com/questions/4961166/wpf-custom-tabcontrol/4963685#4963685">here</a> is <code>TabControl</code> with VS2010 look that I've implemented earlier. It doesn't have the same functionality, but it looks the same.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload