11.8.13

Supporting themes in Visual Studio plug-ins

We have developed a Visual Studio plug-in to our customer (CloudShare). The plug-in is a tool window that enables managing CloudShare environments from within Visual Studio (CloudShare on Visual Studio Gallery).

During the tests we've noticed that our tool window does not change colors when applying a different theme. Searching the web we only found out some references to how you can use resource keys from the Shell assembly like this one: How can I find out when Visual Studio theme color changes?
To enable themes in your code you need to add reference to Shell assembly in your xaml:
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.12.0"
After that you can use the colors in your xaml like this:
<Setter Property="Background" Value="{DynamicResource {x:Static vsfx:VsBrushes.MenuKey}}"/>

You can take a look at the MSDN article that describes the VsBrushes class.

The problem was you cannot actually understand which resource key to use when you look at the VsBrushes class.
To make it easier to identify the colors we have developed a Visual Studio plug-in that shows the actual colors of each key for the selected theme. This helps you with identifying the key for the current theme and apply them to your xaml.
You can also filter the list using RGB values. Print screen and paste into Paint. In Paint use the "Colour Picker" tool to select the relevant color and then open the "Edit Colours" window to find our what are the RGB values. After that use the filter in the tool window to see the relevant keys.

Plug-in on CodePlex: https://vsthemecolorsviewer.codeplex.com/.
Download on Visual Studio Gallery:
2012, 2013.


We hope you will this useful.

98 comments:

  1. Anonymous31/1/14 23:13

    Did you consider telling people how to run this plug-in? I have it installed, but I don't see it in the Tools menu. How do I run this plug-in?

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Anonymous13/2/15 17:14

      View>OtherWindows>ThemeColorsViewer

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. I have read your blog its very attractive and impressive. I like it your blog.

      Dot Net Training in Chennai Dot Net Training in Chennai .Net Online Training .Net Online Training Dot Net Training in Chennai Dot Net Training in Chennai


      Dot Net Online Training Dot Net Online Training LINQ Online Training LINQ Online Training ASP.NET Online Training ASP.NET Online Training

      Delete
  3. Hi Admin,

    Excellent blog and its totally loaded with valid posts on Java and .Net technology. Consider including RSS feed in your blog, so aspirants like me can follow your blog easily. Dot Net Training

    ReplyDelete
    Replies
    1. I have read your blog its very attractive and impressive. I like it your blog.

      ES6 Online Training JavaScript Training Courses JavaScript Training Courses | Angular 4 Online Training Angular 4 Online Training

      Delete
  4. Mind boggling site and hadoop training in chennai its totally stacked with considerable posts on Java and .Net development. Consider fusing RSS divert in your site, so hopefuls like me can take after your site adequately.

    ReplyDelete
  5. Incredible site and its oracle training in chennai completely stacked with substantial posts on Java and .

    ReplyDelete
  6. Your post helped me informatica training in chennai to handle the occupation prospects in online advancement.

    ReplyDelete
  7. Thanks for your informative article. Your pose helped me a lot to under the future in .Net mobile application development. <a href="http://www.fita.in/dot-net-training-in-chennai/”>Dot Net Training in Chennai</a>

    ReplyDelete
    Replies
    1. Nicely explained. Here you described the well written article from your in-depth knowledge. Truly impressive and nice information

      Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

      Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai

      Delete
  8. Thanks for your informative article. Your pose helped me a lot to under the future in .Net mobile application development. Dot Net Training in Chennai

    ReplyDelete
  9. It was really a wonderful article and I was really impressed by reading this blog. Your technical information is very useful for me. Thanks for sharing your ideas.

    Regards...
    Hacking Course in Chennai

    ReplyDelete
  10. It is a great article thanks for a useful information, i have read many articles but this article is great one. Thanks a lot.
    iOS Training in Chennai

    ReplyDelete
  11. You shake for the significant oracle training in chennai article about the visual studio..informatica training in chennai

    ReplyDelete
  12. Excellent post!!! The future of .net application development is on positive note. It offers huge career prospects for talented professionals all over the world. Training on .net technology will ensure good salary package. Best DOT NET Training institute in Chennai | DOT NET Training Institutes in Chennai

    ReplyDelete
  13. SAP is one of the customer relationship management software and it support all end to end customer related process. To know more details about SAP modules please refer the following site.
    Regards..
    SAP Training

    ReplyDelete
  14. Thanks for your wonderful post.It is really very helpful for us and I have gathered some important information from this blog.If anyone wants to get Dot Net Training in Chennai reach FITA, rated as No.1 Dot Net Training Institute in Chennai.

    ReplyDelete
  15. Thanks for sharing this valuable post to my knowledge; SAS has great scope in IT industry. It’s an application suite that can change, manage & retrieve data from the variety of origin & perform statistical analytic on it.
    Regards,
    sas course in Chennai|sas training institute in Chennai|sas training chennai

    ReplyDelete
  16. Wow, brilliant article that I was searching for. Helps me a lot in taking class for my students, so using it in my work. Thanks a ton. Keep writing, would love to follow your posts.
    Shashaa
    best Dot Net training institute in Chennai | best Dot Net training institute in Chennai | best Dot Net training institute in Chennai

    ReplyDelete
  17. I have been following your posts regularly. It is very informative that I share it with my students.
    Harshitha
    QTP Selenium Training

    ReplyDelete
  18. Excellent post about visual studio thanks to the author...

    ReplyDelete
  19. Interesting and worth able content is discussed here. The fact about current technology is explicitly stated over here. I do agree on your thoughts on how the influencers are taking advantage over emerging technology. Thanks for sharing this in here. Keep bloging like this.

    Hadoop Training in Chennai | Hadoop Course in Chennai | Big data training

    ReplyDelete
  20. Way cool! Some extremely valid points! I appreciate you penning this write-up and also the rest of the website is really good.
    SAP APO Online Training

    ReplyDelete
  21. Hi Dude,
    Awesome Post!!! With unique content, I really get reading interest when I am following your article, I hope I ll help many of them who looking this pretty information.
    Regards,
    Angular training in chennai|Node JS training|Angularjs training in chennai

    ReplyDelete
  22. Wonderful post i really impressed the to read the article very nice information keep it up to more post informatica training in Chennai

    ReplyDelete
  23. Excellent Post, I welcome your interest about to post blogs. It will help many of them to update their skills in their interesting field.
    Regards,
    Informatica training center in Chennai|Informatica training chennai|Informatica training in chennai

    ReplyDelete
  24. Very informative blog.Informatica is a data integration/ETL tool that provides functionality for data transformation and loading of data. Informatica gets data from various sources and it loads the data into different targets.

    Informatica training in chennai

    ReplyDelete


  25. I read your articles very excellent and the i agree our all points because all is very good information provided this through in the post. It is very helpful for me. Keep blogging like this. Thanks.

    Peridot Systems Chennai Reviews

    ReplyDelete
  26. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up.

    SEO training in Adyar

    ReplyDelete
  27. Great! Thanks for your documents, its been very helpful. Thanks again for sharing your information gallery

    ReplyDelete
  28. This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.About Us Page Content

    ReplyDelete
  29. he WordPress Simple Paypal Shopping Cart is a simple to utilize and lightweight WordPress module that permits you to offer items or administrations online in a single tick from your WordPress blog
    wordpress cart

    ReplyDelete
  30. Excellent information with unique content and it is very useful to know about the information based on blogs.this is valuable information for learners.thanks
    SAP REFX Online Training in hyderabad

    ReplyDelete
  31. Phone calls can be composed so that the calling party calls alternate members and adds them to the call; be that as it may, members are generally ready to call into the telephone call themselves by dialing a phone number that interfaces with a "meeting extension" (a specific sort of hardware that connections phone lines).Conference Calling Via Phone

    ReplyDelete
  32. nice articles..
    Best SEO training in hyderabad all modules are clearly solved and practice with guide.seo training in hyderabadAnd clearly getting knowledge of seo.

    ReplyDelete
  33. nice..
    SEO training in hyderabad by experts in digital markeing And by prosessional experts in seo.All the training by placement and also guide by the professionals.SEO training in hyderabad

    ReplyDelete
  34. This is the best application on the drop today. There access to enjoy great moments of relaxation: age of war 2|
    age of war 5
    Great! Thanks for sharing the information.Summon creatures to fight enemy units and demolish the opposing castle. Your castle is equipped with a crossbow, which you can use to shoot enemies age of war 6. Make sure you upgrade skills to increase your chances of winning battles.
    The goal of Age of War is to survive longer than the computer and to outlast him you’ll need to train the right troops while balancing your offence and defence in this high paced, quick thinking flash game age of war 4
    . Train troops of you own to combat the computers. As you kill off the computer troops, you will gain EXP and you will eventually advance to the next age.
    Choose a starter deck and prepare for an epic war!age of war 3

    Command your units in each battle to attack the enemy’s castle, while protecting your own base earn to die 2. Earn and upgrade cards to help you conquer the land.age of war

    happy wheels | tank trouble
    Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    cubefield It contains a plethora of tools and objects for level building such as harpoon guns,blocks and vans. Users can upload their maps to a public server where they are accessible

    ReplyDelete
  35. A good blog. Thanks for sharing the information. It is very useful for my future. keep sharing
    red ball 2 | duck life 2 | happy wheels | Red Ball | Red ball 3 | Flash Games| Tank trouble

    ReplyDelete
  36. Useful Information
    one and only affiliate agency in south INDIA, earn money online from affiliate network in india

    ReplyDelete
  37. Helpful Information
    Freshers jobs way provide freshers jobs ,walkins,direct recruitment,openings for freshers and experienced and recruiting experienced and freshers Walkins

    ReplyDelete
  38. useful information

    Online recruitment for bank jobs and government jobs and you can get Notification and application to apply

    online for bank jobs and govt jobs

    ReplyDelete
  39. Recruitment voice contains Daily GK Updates, Bank Recruitment, Government jobs, Bank jobs, Interview Tips, Banking News, GK Updates bank recruitment

    ReplyDelete
  40. Useful Information:
    Telugu Cinema Contains Telugu Cinema News, Latest Movie Reviews, Actor, Actress, Movie Galleries And Many More Telugu Cinema

    ReplyDelete
  41. Great article. I like your blog. Thanks for sharing.

    web designing courses in chennai

    ReplyDelete
  42. supporting themes in visual studio plug nice poss..


    Hadoop online training in hyderabad.All the basic and get the full knowledge of hadoop.
    hadoop online training in hyderbad

    ReplyDelete
  43. very nice post. glad to find your blog. Thanks for sharing.

    web design course in chennai

    ReplyDelete
  44. We have developed a Visual Studio plug-in to our customer (CloudShare).
    informatica online training
    The plug-in is a tool window that enables managing CloudShare environments from within Visual Studio (CloudShare on Visual Studio Gallery).

    ReplyDelete
  45. Good post. thanks for sharing such a useful post.

    PHP Training in Chennai

    ReplyDelete
  46. PHP provides the best option to build the website where we can design our website in a very interactive manner that provides better functioning in data management.
    PHP Training in Chennai | PHP course in Chennai

    ReplyDelete
  47. Great post. Glad to find your blog. keep sharing such a useful post.

    digital marketing training institute in chennai

    ReplyDelete
  48. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    salesforce training in chennai | salesforce training institute in chennai

    ReplyDelete
  49. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    cloud computing training in chennai | cloud computing courses in chennai

    ReplyDelete
  50. very nice post. glad to find your blog. Thanks for sharing.
    dot net Training in Chennai



    ReplyDelete
  51. nice visuals Thanks for sharing this blog..
    tibco Training in Chennai



    ReplyDelete
  52. Updating with the latest technology and implementing it is the only way to survive in our niche. Thanks for making me this article. You have done a great job by sharing this content in here. Keep writing article like this.
    SAS Training in Chennai | SAS Training Institute in Chennai

    ReplyDelete
  53. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    PHP Training in Chennai | PHP course in Chennai

    ReplyDelete
  54. Great and impressive article!! Got to learn and know more about web development. To know more refer create website for much more unique ideas.PHP Training in Chennai | Best PHP training in Chennai

    ReplyDelete
  55. Thanks for posting this useful content, Good to know about new things here, Let me share this,
    AngularJS Training in Chennai | AngularJS Training | Best AngularJS Training Institute in Chennai

    ReplyDelete
  56. Visual Studio has advanced as well, giving developers tools to keep up with the rapidly changing environment.

    No.1 Digital Marketing Course in Chennai
    SKARtec Digital Marketing Academy

    http://skartecedu.in/best-digital-marketing-course-in-chennai/

    ReplyDelete
  57. Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    iOS Training in Chennai

    ReplyDelete
  58. This comment has been removed by the author.

    ReplyDelete
  59. Very Nice Blog I like the way you explained these things. I’ve been looking for ways to improve my website and overall rankings.I hope your future article will help me further.Take SEO Training in Chennai to mould yourself.

    ReplyDelete
  60. really good article.

    Chase4Net is a reputed software training Institute for CCNA Training in Marathahalli,JAVA Training in Marathahalli,Python Training in Marathahalli,Android Training in Marathahalli .
    Our main focus areas are Java Certification Training and Software Development.Chase4Net has been already ranked as the No.1 for CCNA Training in Bangalore,JAVA Training in Bangalore,Python Training in Bangalore,Android Training in Bangalore.
    We provide quality education to the students at low cost.Students will get real experience.We are the Best Java Certification Training institute in bangalore.

    ReplyDelete
  61. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me...
    Android training in chennai
    Ios training in chennai

    ReplyDelete
  62. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..please sharing like this information......
    Web Design Development Company
    Mobile App Development Company


    ReplyDelete
  63. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Android App Development Company
    Android App Development Company

    ReplyDelete
  64. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    PHP training in chennai

    ReplyDelete
  65. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    PHP training in chennai

    ReplyDelete
  66. This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
    Fitness SMS
    Salon SMS
    Investor Relation SMS

    ReplyDelete
  67. Impressive post..!!!
    I can learn so many interesting or informative post through this blog that are helpful for us...Amazing work you have to do on this blog..Keep sharing much more post...

    devops jobs in Hyderabad

    ReplyDelete
  68. I just want to say that all the information you have given here is awesome...great and nice blog thanks sharing..Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    Web Design Development Company
    Web design Company in Chennai
    Web development Company in Chennai

    ReplyDelete
  69. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  70. it is really amazing...thanks for sharing....provide more useful information...
    Mobile app development company

    ReplyDelete
  71. Something new, You press visual plus ins and then a single character you wish to explore for and then it will give you all circumstances of that figure identified with a letter.If you learn about Java Developer Platforms I provide that's Best Java Training in Our conversational areas to visit us,
    Java Training in Chennai | Best Java Training Institutes in Chennai

    ReplyDelete
  72. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
    iOS App Development Company

    ReplyDelete
  73. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays a vital role in every

    Texting API
    Text message marketing
    Digital Mobile Marketing
    Sms API
    Sms marketing

    ReplyDelete
  74. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...

    Dot Net Training Institute in Chennai

    ReplyDelete
  75. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Java Training Institute in Chennai

    ReplyDelete
  76. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

    ReplyDelete
  77. Thank you for posting this beneficial content material, accurate to recognise about new matters right here, permit me percentage this,  oracle training in chennai

    ReplyDelete
  78. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    snapho

    ReplyDelete
  79. Hi dear, I like your post so much, and it is very good. Hope that we can communicate with each other. I want to introduce an aso services, I try it and I feel it is so good to us beginners.

    ReplyDelete