I built a VSPackage for VS2015. How can I get the current theme colors to color my elements appropriate? I tried things like
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.14.0"
Background="{DynamicResource {x:Static vsfx:VsBrushes.CommandBarOptionsBackgroundKey}}"
But that didn't work. Any help appreciated.
Thanks!
This worked for me:
You can get the full list of colors here: Microsoft.VisualStudio.PlatformUI.EnvironmentColors