Bar Manager
- 2 minutes to read
To add bars or popup menus to a window, you need to add a BarManager container to this window. The BarManager can have only one child. You can use another control container (for instance, a DockPanel) as a child of the BarManager, and then position other controls onto this container.
For bars to be docked to the window, bar containers must exist within the window. For instance, to allow bars to be docked to the top, left, right and bottom edges, four bar containers must be created. For more information, see Bar Containers.
Bar elements (buttons, sub-menus, static text, editors, etc) are represented by Bar Items. To display any of these elements within bars or popup menus, you need to create a corresponding Bar Item object and add it to the bar/menu. When you add a bar item to a bar/menu, a link to this bar item is created, and it's added to the bar/menu instead of the bar item itself. When adding a single bar item to multiple bars/menus, multiple bar item links are created. However, they all refer to one bar item, and clicking any of these links invokes the same bar item functionality. To learn more, see Items and Links.
#Examples
- How to create simple bars
- How to create bar items and associate them with categories
- How to embed in-place editors into bars
- How to create a float bar and different types of bar containers
- How to get and focus an in-place editor
- How to create various bar items and add separators between links
- How to create a BarLinkContainerItem
- How to create a BarSplitButtonItem
- How to create a BarToolbarItemList item
- How to create BarStaticItem items
- How to create a bar containing an embedded text editor