# Using Different Elements on a RadRibbonBar

You can build the user interface with a **RadRibbonBar** using a variety of different elements. In this tutorial, you will see how some of these elements can be placed and customized.

## Prepare an ImageList to be Used in the Telerik RadRibbonBar

1\. Create a **RadRibbonForm** control by adding it by clicking on the 'Add New Item...' option in the context menu of the project or by changing the base class of a standard Windows Form to **RadRibbonForm.**

2\. Open the designer of the **RadRibbonForm**

3\. Drag a WinForms **ImageList** component from the Toolbox to the form. In the area below the design surface, you will see **imageList1**.

4\. Using the Images Collection Editor, add the desired images to the ImageList. For more help with this task, see [How to: Add or Remove ImageList Images with the Designer in Visual Studio](http://msdn2.microsoft.com/en-us/library/ms233674.aspx) documentation.

> note A predefined list of images has been prepared for the purpose of this example.

5\. Apply the **ImageList** to **RadRibbonBar**:

![WinForms RadRibbonBar ImageList](https://www.telerik.com/products/winforms/documentation/assets/13b2d97e22e92f4a02fde8a154a241fb/ribbonbar-using-different-elements-on-a-radribbonbar006.png)

## Adding a Tab and a Group

1. Click **Add New Tab...** to create a new tab.

2. Type the word **Write** and press **Enter**.

3. Click off the **Write** tab to deselect it.

4. Select the **Write** tab again.

5. Click **Add New Group...** to create a new group.

6. Set the **Text** property of the new group to **Clipboard**. <br>![WinForms RadRibbonBar Adding Tab Inside Group](https://www.telerik.com/products/winforms/documentation/assets/388635332c2d91fd56d3234bb6a0ef61/ribbonbar-using-different-elements-on-a-radribbonbar001.png)

## Add Elements

1. Right-click the **Clipboard** group and select **Add an item**, and then **RadButtonElement**.

2. Select the **Clipboard** group again and by right-clicking on it add a **Vertical Button Group**.

3. Select the group and open the **Properties** window. Find the **ShowBorder** property and set it to **true**.

4. Select the **Vertical Button Group** and from its **SmartTag** execute the **Edit Items** action.

5. Add three **RadButtonElement** instances in the button group:
   ![WinForms RadRibbonBar Add Elements in Nested Tab](https://www.telerik.com/products/winforms/documentation/assets/20dcedfb14d5336fbb67bc953a2896c5/ribbonbar-using-different-elements-on-a-radribbonbar002.png)

## Customize the RadButtonElement

1. Select the **RadButtonElement** which is outside the **Button Group**.

2. Set the **TextImageRelation** property to **ImageAboveText**.

3. Set an appropriate image by modifying the **Image** property or selecting **ImageKey** from the associated ImageList:

   ![WinForms RadRibbonBar ButtonElement Properties Dialog](https://www.telerik.com/products/winforms/documentation/assets/806dd3e5c4bb81af9bb9fee0891cebc6/ribbonbar-using-different-elements-on-a-radribbonbar007.png)

4. Set the **ImageAlignment** property to **MiddleCenter**.

5. Set the **Text** property to **Paste** and the **TextAlignment** property to **MiddleCenter**.

With an appropriate **Image** the **RadRibbonBar** should look similarly:
![WinForms RadRibbonBar Image Text Alignment](https://www.telerik.com/products/winforms/documentation/assets/7f9d6d3867209260ad5905c36ffd6bab/ribbonbar-using-different-elements-on-a-radribbonbar003.png)

## Customize the RadButtonElements in the RadRibbonBarButtonGroup

1. Select the first **RadButtonElement** in the **RadRibbonBarButtonGroup.**

2. Set the **DisplayStyle** property to **Image**

3. Set the **ImageAlignment** property to **MiddleCenter**

4. Set the **Image** property with an appropriate image

5. Do the same for the rest elements in the **RadRibbonBarButtonGroup** so that the result looks similar to this:
   ![WinForms RadRibbonBar Buttons in RibbonBarButtonGroup](https://www.telerik.com/products/winforms/documentation/assets/ab07d6e1e7464c610b7072deb14acd02/ribbonbar-using-different-elements-on-a-radribbonbar004.png)

## Adding a RadGalleryElement

1. Select the **RadRibbonBar** control and add another **RadRibbonBarGroup** called **Styles** in the 'Write' tab.

2. Select the **Styles** group, right-click on it and add a **RadGalleryElement**.

3. Select the **RadGalleryElement** and open the **Properties** window of Visual Studio. Find the **Items** collection and add 6 **RadGalleryItem** instances.

4. Set appropriate images to all of the **RadGalleryItem** instances.

5. For each **RadGalleryItem** set the **DisplayStyle** property to **Image** so that no text appears.

6. Find the **MaxColumns** and **MaxRows** properties of the **RadGalleryElement** and set their values to 2 and 5 respectively. The result should be similar to this:

> note For the purpose of this demonstration Office 2007 like images for the gallery have been used.

![WinForms RadRibbonBar Gallery Element](https://www.telerik.com/products/winforms/documentation/assets/37af202a722ddc853d27f87865eaedc9/ribbonbar-using-different-elements-on-a-radribbonbar005.png)

## See Also

* [Design Time](https://www.telerik.com/products/winforms/documentation/controls/ribbonbar/design-time)
* [Structure](https://www.telerik.com/products/winforms/documentation/controls/ribbonbar/structure)
* [Getting Started](https://www.telerik.com/products/winforms/documentation/controls/ribbonbar/getting-started)
* [Backstage View](https://www.telerik.com/products/winforms/documentation/controls/ribbonbar/backstage-view/overview)
* [Themes](https://www.telerik.com/products/winforms/documentation/controls/ribbonbar/customizing-appearance/themes)
