Skip to content

ToolBarMarkupExtensions class

Generated fluent setters and event subscriptions for ToolBar.

Guide: C# Markup guide

public static class ToolBarMarkupExtensions
name description
static CanReorderGroups(…) Sets CanReorderGroups. Whether groups may be dragged into a different place. This is a capability, not a mode: a press still runs the entry, and only a drag from a group’s grip moves it. On by default, as a toolbar with grips has been since the toolbars this one is modelled on; turn it off for a fixed one and the grips go with it.
static ItemPresentation(…) Sets ItemPresentation. How entries show their commands unless the entry overrides it.
static ItemToolTipMode(…) Sets ItemToolTipMode. What the entries build a tooltip from when the entry supplies none. Decided here rather than per entry: a toolbar that says one thing about half its buttons and another about the rest is harder to read than either. Defaults to everything the command can say, because an icon-only entry shows no name at all.
static OnGroupsReordered(…) Subscribes handler to GroupsReordered. Raised after a drag has moved a group, once Bands holds the new layout.