ComponentOne Ribbon for WinForms
Making a Windows 7-Style Application Button
C1Ribbon (Classic) Task-Based Help > Working with the Application Menu > Making a Windows 7-Style Application Button

Even if you’re using one of the Office2007 visual styles, you can make the Ribbon’s menu application button mimic the Windows 7-style application button that appears in applications like Word and Paint. In this topic, you’ll create a Windows 7-style application button by setting the RibbonApplicationMenu.Win7Look property. You’ll also add text and an image to that button.

Tip: The ability to programmatically reference the standard Ribbon icons is not supported by C1Ribbon (Classic). If you need to add the icons at run time, you can use images from the Visual Studio 2008 Image Library or the Visual Studio 2010 Image Library. These are installed by default with Visual Studio, and they are located in the following directories:

Complete the following steps:

  1. In the Properties window, expand the Application Menu node.
  2. Set the following properties:
    • Set the RibbonApplicationMenu.Win7Look property to True to change the look of the Ribbon application button.

      Note: You don’t have to do this if you are using one of the Office2010 visual styles, as those already have the rectangular buttons.

    • Set the RibbonApplicationMenu.Text property to “File” to add text to the Ribbon application button.
    • Set the RibbonItem.SmallImage property to FolderClosed by clicking the drop-down arrow, clicking the drop-down arrow on the SmallImage editor screen, and selecting FolderClosed from the list.

This topic illustrates the following:

The result of this topic will resemble the following image: