In This Article

OverflowingItemsControlPanel Class

Represents a Avalonia.Controls.Panel control with layout logic for IOverflowingBarItemsControl items.

public class OverflowingItemsControlPanel : OverflowingItemsControlPanelBase, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, IChildIndexProvider, INavigableContainer, IOrientedElement
Inheritance:
object AvaloniaObject Animatable StyledElement Visual Layoutable Interactive InputElement Control Panel VirtualizingPanel OverflowingItemsControlPanelBase object
Derived:
RibbonQuickAccessToolBarPanel StandaloneToolBarPanel
Implements:
IDataContextProvider ILogical IThemeVariantHost IResourceHost IResourceNode IStyleHost ISetLogicalParent ISetInheritanceParent IStyleable INamed IInputElement IDataTemplateHost ISetterValue IChildIndexProvider INavigableContainer IOrientedElement

Constructors

OverflowingItemsControlPanel()

Initializes an instance of the class.

public OverflowingItemsControlPanel()

Properties

ItemSpacing

The amount of space between items.

public double ItemSpacing { get; set; }

Property Value

double

Orientation

The orientation of the control.

public Orientation Orientation { get; }

Property Value

Orientation

Methods

ApplyVariantSize(Control)

Applies an appropriate variant size to the specified Avalonia.Controls.Control.

protected virtual void ApplyVariantSize(Control childElement)
Parameter Type Description
childElement Control

The Avalonia.Controls.Control to examine.

ArrangeOverride(Size)

Positions child elements as part of a layout pass.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

The size available to the control.

Returns

Size:

The actual size used.

GetControl(NavigationDirection, IInputElement?, bool)

Gets the next control in the specified direction.

protected override IInputElement? GetControl(NavigationDirection direction, IInputElement? from, bool wrap)
Parameter Type Description
direction NavigationDirection

The movement direction.

from IInputElement

The control from which movement begins.

wrap bool

Whether to wrap around when the first or last item is reached.

Returns

IInputElement:

The control.

MeasureOverride(Size)

Measures the control and its child elements as part of a layout pass.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

The size available to the control.

Returns

Size:

The desired size for the control.

Fields

ItemSpacingProperty

Defines the ItemSpacing property.

public static readonly StyledProperty<double> ItemSpacingProperty

OrientationProperty

Defines the Orientation property.

public static readonly StyledProperty<Orientation> OrientationProperty

Inherited Members

Extension Methods