Skip to main content

Bars

  • 4 minutes to read

Bars implement the hierarchical menu model in applications; this model is the traditional way of organizing application command regions. The DevExpress Bar Manager component offers many capabilities used in creating and customizing toolbars.

WinForms - Bars 2015 - Landing Page

Each bar is a horizontally or vertically aligned stripe that contains buttons, editors, radio button groups, etc. The DevExpress Bars Library includes three toolbar types: main menu, regular toolbars, and status bars.

You can combine various toolbar types within an application and utilize the Bar Manager component to access and manage these toolbars. Additionally, you can use the Bar Manager component to create context and pop-up menus. Follow the links below to learn more about Bar Manager concepts and features.

Tutorials

Bars - LP - Tutorials

A series of documents that gradually introduce main Bars concepts in terms of simple step-by-step tutorials.

  • Add and Remove Toolbars
    A start-up tutorial that features the core component of the DevExpress Bars Library — the BarManager. You will learn about the initial layout provided by the Bar Manager component layout and toolbar types supported by it.

  • Add Bar Items To Toolbars
    In this lesson, you will learn how to add simple buttons, sub-menus, editors, and static label items to your toolbars (see also: The List of Bar Items and Links).

  • Bar Item Links
    This tutorial introduces the bar item/bar item link concept, used in both Bars and Ribbon libraries. You will learn how to display the same bar item in multiple places without duplicating it.

  • Add Functionality to Bar Items
    Explains how to add the required functionality to bar items and their links by handling specific events or assigning MVVM-related commands.

  • Toolbar Customization
    This document illustrates how to specify additional dock, size, and display settings for toolbars.

  • Recently Used Items
    Learn how to shorten your sub-menus by temporarily hiding items that are not frequently used.

  • Create Popup Menus
    A tutorial that briefly describes how to add context menus to your Bars UI.

MDI Merging

Bars - LP - MDI

In multi-document interface (MDI) applications, both parent and child MDI forms can have their own menus and bars. The menu of the parent MDI form usually displays general commands (for working with files, windows, etc.), while a child MDI form has bars and menus with commands specific to this exact window. DevExpress Bars can combine these separate toolbars within the parent form.

Bar Manager Designer

Bars - LP - Designer

The Bar Manager Designer is a multi-page dialog invoked at design time. Using this dialog, you can perform any required task, from adding toolbars and populating them with item links, to saving and restoring different layout variations.

Runtime Customization and Layout Management

WinForms - Bars - Customization

A single layout cannot satisfy the requirements of every customer, which is why it is important to allow users to customize an application UI as needed. DevExpress Bars fully support live customization, and with the save/restore layout feature, your users can store multiple layout variations and dynamically switch between them.

  • Layout Management
    This section is dedicated to various layout saving and restoring techniques.

Appearance and Hotkeys

Bars - LP - Glyph Skinning

  • Appearance Settings
    The articles below explain how to perform specific appearance modifications. For more information on bar appearances, refer to the following section: Look and Feel.

See Also

Ribbon - Items and Links

  • Ribbon
    The Ribbon Control implements the Ribbon UI, which was first introduced in Microsoft Office 2007. The Ribbon UI, which is an alternative to the standard bars and hierarchical menu model in applications, is designed to improve application usability by grouping menu commands into pages and categories.

  • Visual Studio Inspired UI
    This tutorial is dedicated to the Microsoft Visual Studio-style UI — a classic layout that contains tabbed or MDI Documents in the main working area, panels at the side of the form, and a main menu at the top.