New to Telerik UI for WinForms? Download free 30-day trial

Design-Time

To start using RadCommandBar just drag it from the toolbox and drop it at the form.

Smart Tag

Select RadCommandBar and click the small arrow on the top right position in order to open the Smart Tag.

Figure 1: Smart Tag

WinForms RadCommandBar Smart Tag

  • Common Tasks

    • New Theme Manager: Adds a new RadThemeManager component to the form.

    • Edit UI elements: Opens a dialog that displays the Element Hierarchy Editor. This editor lets you browse all the elements in the control.

    • Theme Name: Select a theme name from the drop down list of themes available for that control. Selecting a theme allows you to change all aspects of the controls visual style at one time.

    • Edit Rows: opens the CommandBarRowElement Collection Editor.

    • Dock: docks the control.

    • AddRow: adds a new row to the command bar.

  • Learning Center: Navigate to the Telerik help, code library projects or support forum.

  • Search: Search the Telerik site for a given string.

Adding a Telerik RadCommandBar to a Form

To add a RadCommandBar to a form, drag it from the toolbox and drop it on the form. By default, the control is oriented horizontally and docked to the top of the form. You can change the orientation, dock style and size from the property grid.WinForms RadCommandBar Add to a Form

Adding a RadCommandBarRowElement to RadCommandBarElement

To add a row element to a RadCommandBarElement, click in the blank area of the RadCommandBar control, above the shaded band. You can repeat the process to create multiple rows.

Alternatively, follow these steps to edit line elements:

  1. Select the RadCommandBar control.

  2. Open its Smart Tag menu.

  3. Select Add Row to immediately add a row or Edit Rows to open Collection Editor.

  4. Click the Add button in the RadElement Collection Editor to add a new row element.

  5. Click OK.

WinForms RadCommandBar Add Row

WinForms RadCommandBar Modify Row

Adding a RadCommandBarStripElement to a RadCommandBarRowElement

To add a strip element to a row element, click on the button marked with +.

WinForms RadCommandBar Add Strip Element

Alternatively, follow these steps to edit strip elements:

  • Select a RadCommandBarRowElement.

  • Open its Smart Tag menu.

  • Select Add New Strip to immediately add a strip element or Edit Strips to open Collection Editor.

  • Click the Add button in the RadElement Collection Editor to add a new strip element.

  • Click OK.

WinForms RadCommandBar Add New Strip Element

WinForms RadCommandBar Modify Newly Added Strip Element

Adding an item to a RadCommandBarStripElement

To add an item to a strip element, click on the down arrow button, placed in the strip and choose the item type to add.

WinForms RadCommandBar RadCommandBarStripElement

Alternatively, follow these steps to edit items:

  1. Select a RadCommandBarStripElement.

  2. Open its Smart Tag menu.

  3. Select Edit Items to open Collection Editor.

    WinForms RadCommandBar CommandBarStripElement Edit Items

  4. Click the Add button in the RadElement Collection Editor to add one of the possible items.

  5. Click OK.

WinForms RadCommandBar CommandBarStripElement Collection Editor

See Also

In this article