In This Article

VirtualizingItemsControlPanelBase Class

Represents an abstract VirtualizingPanel control for a custom ItemsControl.

public abstract class VirtualizingItemsControlPanelBase : VirtualizingPanel
Inheritance:
object Visual UIElement FrameworkElement Panel VirtualizingPanel object
Derived:
AnimatedVirtualizingItemsControlPanelBase OverflowingItemsControlPanelBase

Constructors

VirtualizingItemsControlPanelBase()

Initializes an instance of the class.

protected VirtualizingItemsControlPanelBase()

Properties

ItemsControl

Gets the owner ItemsControl.

protected ItemsControl? ItemsControl { get; }

Property Value

ItemsControl:

The owner ItemsControl.

Methods

GetRealizedContainers()

Gets the generated containers and builds them if necessary.

protected IList<UIElement>? GetRealizedContainers()

Returns

IList<UIElement>

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()

RemoveAllChildrenFromOtherPanels()

Removes all generated containers that may currently be located in other panels.

protected abstract void RemoveAllChildrenFromOtherPanels()

RemoveChildFromOtherPanel(UIElement)

Removes the specified generated container from another panel, if it currently located in one.

protected abstract void RemoveChildFromOtherPanel(UIElement childElement)
Parameter Type Description
childElement UIElement

The element to remove.