In This Article

OverflowingItemsControlPanelBase Class

Represents an abstract Panel control with layout logic for IOverflowingItemsControl items.

public abstract class OverflowingItemsControlPanelBase : VirtualizingPanel
Inheritance:
object Visual UIElement FrameworkElement Panel VirtualizingPanel object
Derived:
OverflowingItemsControlPanel AvatarGroupPanel

Constructors

OverflowingItemsControlPanelBase()

Initializes an instance of the class.

protected OverflowingItemsControlPanelBase()

Properties

IsOverflowSupported

Whether overflowing is supported by the ItemsControl owner.

protected bool IsOverflowSupported { get; }

Property Value

bool

ItemsControl

Gets the owner ItemsControl.

protected ItemsControl? ItemsControl { get; }

Property Value

ItemsControl:

The owner ItemsControl.

Methods

GetOverflowedItemCount(ItemsControl)

The get accessor for the attached OverflowedItemCountProperty.

protected static int GetOverflowedItemCount(ItemsControl obj)
Parameter Type Description
obj ItemsControl

The object to examine.

Returns

int:

The value of the attached property.

GetRealizedContainers()

Gets the generated containers and builds them if necessary.

protected IList<UIElement>? GetRealizedContainers()

Returns

IList<UIElement>

MoveChildToOverflowPanel(int, UIElement)

Moves a child control to the related overflow panel from this panel.

protected bool MoveChildToOverflowPanel(int insertIndex, UIElement child)
Parameter Type Description
insertIndex int

The index at which to insert the child control in the related overflow panel.

child UIElement

The child UIElement to move.

Returns

bool:

true if the move is successful; otherwise, false.

MoveChildToThisPanel(int, UIElement)

Moves a child control to this panel from the related overflow panel.

protected bool MoveChildToThisPanel(int insertIndex, UIElement child)
Parameter Type Description
insertIndex int

The index at which to insert the child control in this panel.

child UIElement

The child UIElement to move.

Returns

bool:

true if the move is successful; otherwise, false.

OnItemsChanged(object, ItemsChangedEventArgs)

Called when the Items collection that is associated with the ItemsControl for this Panel changes.

protected override void OnItemsChanged(object sender, ItemsChangedEventArgs e)
Parameter Type Description
sender object

The object that raised the event.

e ItemsChangedEventArgs

The object that raised the event.

RealizeAllContainers()

Realizes all containers.

protected void RealizeAllContainers()

SetOverflowedItemCount(ItemsControl, int)

The set accessor for the attached OverflowedItemCountProperty.

protected static void SetOverflowedItemCount(ItemsControl obj, int value)
Parameter Type Description
obj ItemsControl

The object to update.

value int

The value to set.

Fields

OverflowedItemCountProperty

Identifies the OverflowedItemCount dependency property. This field is read-only.

public static readonly DependencyProperty OverflowedItemCountProperty