CommandBar Structure in WinForms C# Tutorial
The WinForms CommandBar control is a powerful and easy to use user interface control for Windows Forms. The CommandBar component is designed a few levels to keep the CommandBar components. And the detailed levels have been structured as following. The first level is the CommandBar control. The second level is the CommandBarElement object. The third level is the BarRowElement object which is the collection of the Rows. The forth level is the CommandBarStripElement object that is the collection of strips. The fifth level contains three different element objects, including CommandBarGripButton, Items arranged in ItemsLayout and CommandBarOverflowButton
CommandBar Level of the Control
The second level is the CommandBarElement in the WinForms CommandBar component. The CommandBarElement object stands for and contains the full area of the form taken by the CommandBar element.
CommandBarRowElement Level of the Control
The third level is the CommandBarRowElement in the WinForms CommandBar control. The CommandBarRowElement object is a collection of the rows. It stands for and contains a horizontal or vertical line within the CommandBarElement, in which all individual strip elements are visible.
The forth level is the CommandBarStripElement in the WinForms CommandBar control. The CommandBarStripElement is a collection of the strips. This object stands for an individual toolstrip within a CommandBarRowElement. The CommandBarBaseItem will arrange its descendants within a specific CommandBarStripElement.
Descendants of CommandBarBaseItem
The fifth level contains three different element objects, CommandBarGripButton, Items arranged in ItemsLayout and CommandBarOverflowButton. The CommandBarStripElement contains various individual items, the descendants, which are represented by a variety of elements, inclduing:
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls