Skip to content

MxTabControl class

Displays content in tabs with configurable header layout, sizing, and drag reordering.

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

Declaration

public class MxTabControl : TabControl

Constructors

name description
MxTabControl() The default constructor.

Properties

name description
CloseButtonShowMode { get; set; } Gets or sets where close buttons are displayed.
ControlBoxContent { get; set; } Gets or sets the custom content displayed in the tab header panel alongside its buttons.
ControlBoxContentTemplate { get; set; } Gets or sets the template used to display ControlBoxContent.
HorizontalControlBoxContentAlignment { get; set; } Gets or sets the horizontal alignment of the custom content in the tab header panel.
IsTabPanelVisible { get; set; } Gets or sets whether the tab header panel is displayed.
NewButtonShowMode { get; set; } Gets or sets where the new tab button is displayed.
NewCommand { get; set; } Gets or sets the command executed when the new tab button is clicked.
NewCommandParameter { get; set; } Gets or sets the parameter passed to NewCommand.
StretchTabsToFill { get; set; } Gets or sets whether tab headers fill the available space by adding equal lengths to each header, subject to item size constraints. Applies to each line in every layout.
TabDragMode { get; set; } Gets or sets whether users can reorder tabs by dragging.
TabHeaderCollapseThreshold { get; set; } Gets or sets the tab header length at or below which text is replaced by an available glyph, in device-independent pixels. Zero disables replacement. The value must be finite and nonnegative and does not affect tab size.
TabHeaderOrientation { get; set; } Gets or sets the orientation of content within tab headers.
TabIconDisplayMode { get; set; } Gets or sets when tab header glyphs are displayed.
TabSize { get; set; } Gets or sets the preferred tab header length along the tab strip, in device-independent pixels. The value must be finite and greater than zero. Used in Explicit mode and in Default mode with the Stretch layout.
TabSizeMode { get; set; } Gets or sets how the preferred tab header size is determined.
TabStripLayoutType { get; set; } Gets or sets how tab headers are arranged when the available space is insufficient.
VerticalControlBoxContentAlignment { get; set; } Gets or sets the vertical alignment of the custom content in the tab header panel.

Events

name description
event CloseButtonClick Occurs when a close button in a tab header or the header panel is clicked.
event NewButtonClick Occurs when the new tab button is clicked.
event TabItemCompleteDragging Occurs when dragging a tab ends, before the item is moved in the collection. Set Cancel to cancel reordering.
event TabItemStartDragging Occurs before a tab starts being dragged. Set Cancel to cancel dragging.

See Also

Used in articles