Add commands to toolbars
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
A toolbar is a horizontal or vertical strip that contains buttons bound to commands. You can add your own commands to toolbars on many different windows in Visual Studio: the main Visual Studio window, the Solution Explorer, and your own custom tool windows.
This section shows a number of things you can do with commands on toolbars.
In this Section
Add a toolbar Explains how to add a toolbar to the set of toolbars in the main Visual Studio window.
Add a toolbar to a tool window Explains how to add a toolbar to a tool window.
Add a command to the Solution Explorer toolbar Explains how to add a command to the toolbar on the Solution Explorer.
Add a menu controller to a toolbar Explains how to add a menu controller to a toolbar.
Dynamically add menu items Explains how to add menu items dynamically in different contexts.