Customizing the Ribbon in Visio 2010 by Using a Visual Studio 2010 Add-In

Learn how to use a Visual Studio 2010 managed-code add-in project (that contains an XML resource) and some additional sample code from the Visio 2010 SDK Code Samples Library to customize the ribbon in Visio 2010.

Read the rest here: 
Customizing the Ribbon in Visio 2010 by Using a Visual Studio 2010 Add-In