Skip to content

Toolbar class

Displays a collection of toolbar items as a toolbar, main menu, or status bar.

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

Declaration

public class Toolbar : TemplatedControl, IMxMainMenu, INavigatable, IToolbarItemsHolder

Public Members

name description
Toolbar() Initializes a new instance of the Toolbar class.
AllowDragToolbar { get; set; } Gets or sets whether users can drag the toolbar, or null to allow dragging only in the default display mode.
AllowShrinkToolbar { get; set; } Gets or sets whether the toolbar can shrink and move overflowing items into its customization popup.
AllowVisibilityCustomization { get; set; } Gets or sets whether users can change the toolbar's visibility, or null to allow visibility changes for all display modes except the main menu.
Column { get; set; } Gets or sets the toolbar's column within its container.
Container { get; set; } Gets or sets the container that hosts the toolbar.
CustomizationButtonVisible { get; } Gets whether the toolbar's customization button is currently visible.
DisplayMode { get; set; } Gets or sets how the toolbar displays its items.
DockType { get; set; } Gets or sets the docking location of the toolbar.
DrawThemeBorder { get; set; } Gets or sets whether the toolbar displays its themed border.
FloatingPosition { get; set; } Gets or sets the screen position of the floating toolbar.
ItemCount { get; } Gets the number of item containers.
Items { get; } Gets the collection of toolbar items.
ItemsSource { get; set; } Gets or sets the collection whose items are used to generate toolbar items.
Manager { get; set; } Gets or sets the toolbar manager associated with this object.
Position { get; set; } Gets or sets the toolbar's position along its container.
Row { get; set; } Gets or sets the toolbar's row within its container.
SerializationInfo { get; } Gets the layout information used during serialization or deserialization.
SerializationName { get; set; } Gets or sets the name used to identify this object during layout serialization.
ShowCustomizationButton { get; set; } Gets or sets whether to show the toolbar's customization button, or null to use the default behavior.
StretchToolbar { get; set; } Gets or sets whether the toolbar stretches to fill the available space.
Title { get; set; } Gets or sets the toolbar's display title.
ToolbarName { get; set; } Gets or sets the name used to identify the toolbar.
UserToolbar { get; set; } Gets or sets whether the toolbar was created by the user.
WrapItems { get; set; } Gets or sets whether toolbar items wrap onto additional rows or columns.
ClearGeneratedToolbar() Clears the state associated with a generated toolbar.
GetAllowCustomization() Returns whether the toolbar allows customization based on its ShowCustomizationButton setting.
override ToString()

See Also

Used in articles