Skip to content

ToolbarManager class

Manages toolbars, toolbar items, popup menus, keyboard shortcuts, and customization.

Namespace: Eremex.AvaloniaUI.Controls.Bars
Assembly: Eremex.Avalonia.Controls.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public class ToolbarManager : Border

Public Members

name description
ToolbarManager() Initializes a new instance of the ToolbarManager class.
static FindManager(…) Finds the toolbar manager for the specified control, optionally creating a window manager with the supplied factory.
static GetManager(…) Gets the toolbar manager associated with the specified object.
AllowContainerCustomizationMenu { get; set; } Gets or sets whether toolbar containers can display a customization menu.
AllowCustomization { get; set; } Gets or sets whether users can customize toolbars and toolbar items.
AllowDragItems { get; set; } Gets or sets whether users can drag toolbar items during customization.
Containers { get; } Gets the collection of toolbar containers.
DragItem { get; set; } Gets or sets the toolbar item currently being dragged.
IsMainMenuActivated { get; } Gets whether the main menu is active for keyboard navigation.
IsWindowManager { get; set; } Gets or sets whether this manager acts as the toolbar manager for its window.
Items { get; } Gets the collection of toolbar items.
MainMenu { get; set; } Gets or sets the toolbar used as the main menu.
Popups { get; } Gets the collection of registered popups.
SerializationInfo { get; } Gets the layout information used during serialization or deserialization.
Toolbars { get; } Gets the collection of toolbars.
event PreviewAccessKey Occurs before a toolbar access key is processed.
event PreviewHotKey Occurs before a toolbar keyboard shortcut is processed. Cancel the event to prevent processing.
GetContainer(…) Returns the toolbar container for the specified docking location, or null if no container is registered.
GetToolbar(…) Returns the toolbar with the specified name, or null if no matching toolbar is registered.
HideCustomizationWindow() Closes the toolbar customization window.
PostEditor() Posts the active editor's value.
RestoreLayout(…) Restores the layout from the specified stream using the default serialization settings. (2 methods)
SaveLayout(…) Saves the layout to the specified stream using the default serialization settings. (2 methods)
ShowCustomizationWindow(…) Displays the toolbar customization window with the specified owner window.
static GetContextPopup(…) Gets the context popup associated with the specified object.
static SetContextPopup(…) Sets the context popup associated with the specified object.
static SetManager(…) Sets the toolbar manager associated with the specified object.

See Also

Used in articles