Virtualizes list-view data items and prepares their measured sizes and scroll state for the active view.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseListViewContainer : VirtualizedStackContainer<ListViewDataItem>, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelBaseVirtualizedContainer<ListViewDataItem>VirtualizedStackContainer<ListViewDataItem>BaseListViewContainer...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a container for the specified list-view element.
public BaseListViewContainer(BaseListViewElement owner)
The element that supplies the item data and view settings.
Fields
The size accumulated while measuring the currently realized items.
protected SizeF cachedDesiredSize
The list-view element whose data items and sizing settings are used by this container.
protected BaseListViewElement owner
Methods
Prepares item sizes and scrollbar state before measuring the realized items. Configured item and group sizes are used when arbitrary item dimensions are disabled; otherwise, representative visual elements are measured to update their data items.
Removes trailing item spacing and limits the accumulated size to the original available size.
protected override SizeF EndMeasure()
The desired size accumulated during measurement.
Overrides:
Searches later realized children for an element compatible with the requested item. Group items reuse group visuals; other items reuse visuals whose data has the same runtime type.
protected override int FindCompatibleElement(int position, ListViewDataItem data)
The position at which an element is needed.
dataListViewDataItemThe data item the element must represent.
Returns:The index of a compatible realized child, or -1 if none is available.
Overrides:
Uses each data item's Visible state to determine whether it participates in layout.
protected override bool IsItemVisible(ListViewDataItem data)
The item being checked.
Returns:Overrides:
Measures a realized visual item and returns its desired size.
protected override SizeF MeasureElementCore(RadElement element, SizeF availableSize)
The visual element to measure.
availableSizeSizeFThe space available to the element.
Returns:The element's desired size after measurement.
Overrides:
Updates the realized child at the requested position, reusing a compatible visual when possible or creating one.
protected override IVirtualizedElement<ListViewDataItem> UpdateElement(int position, ListViewDataItem data)
The child position to update.
dataListViewDataItemThe data item that the child must represent.
Returns:IVirtualizedElement<ListViewDataItem>
The attached or newly created virtualized element.
Overrides: