Delen via


Command routing in VSPackages

Applies to: yesVisual Studio noVisual 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 command is routed in Visual Studio based on the context in which it is executed. It is routed from the initial context outward to the global context.

In this section

Describes the order of command routing resolution.

Discusses command routing.

Discusses considerations in routing commands between managed code and COM.

Discusses the model for how you can determine the user's selection context focus on a window.

Explains how to create a UI that includes menus, toolbars, and command combo boxes.