Visual Studio 2010: Adding commands to toolbar
I've been playing with the RC of Visual Studio 2010, trying to set it up similarly to my VS 2008 installation. In VS 2008, I have added a couple of commands to the standard toolbar; Edit > Outlining > Toggle All, and Edit > Outlining > Collapse to Definitions. These commands don't have native images, so I created a couple and added them to the toolbar buttons using the VS 2008 Customize dialog, like this: I right-click the toolbar to bring up its context menu, then I select Customize to open the Customize dialog. At that point, I can right click the button to which I want to add an icon. I get another context menu that lets me paste a button image or set the button image to a standard image.
I tried doing the same thing in VS 2010 RC, and it works the same, up to the point where the Customize dialog opens. But at that point, I can't right click my added button to set its image. So, that brings me to my question: Is there a way that I can assign an image to a command that I add to a VS 2010 toolbar, assuming the command doesn't have a nat开发者_运维百科ive image? Thanks.
Command Image Changing Extension
Link
A few of the configuration options changes (and some were lost) in VS2010 (as part of the rework in WPF).
You can do some customisation in the Commands tab of the customised dialogue (that you get to by right clicking on the toolbar). But controlling the image is not one of them.
See this VS team blog post: http://blogs.msdn.com/visualstudio/archive/2009/12/14/customizing-visual-studio-2010.aspx
精彩评论