Reuses provider-created elements to display items from an enumerable data source as a virtualized layout.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The type of item represented by each virtualized element.
Syntax:
public abstract class BaseVirtualizedContainer<T> : LayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelBaseVirtualizedContainer<T>...
Derived Classes:
Implements:
Inherited Members
Constructors
protected BaseVirtualizedContainer()
Properties
Gets or sets the associated data provider.
public IEnumerable DataProvider { get; set; }
The data provider.
Gets a value indicating whether the data provider returns a null enumerator.
protected bool DataProviderIsEmpty { get; }
true if the data provider's GetEnumerator method returns null; otherwise, false.
Gets or sets the associated element provider.
public IVirtualizedElementProvider<T> ElementProvider { get; set; }
The element provider.
Methods
Ends the measure.
Gets the element context.
Enables drawing clipping so virtualized children are not drawn outside the container.
protected override void InitializeFields()
Overrides:
Inserts the element.
protected virtual void InsertElement(int position, IVirtualizedElement<T> element, T data)
The position.
elementIVirtualizedElement<T>The element.
dataTThe data.
Determines whether the specified item is visible.
protected virtual bool IsItemVisible(T data)
The item.
Returns:true if item is visible; otherwise, false.
Measures a realized item and determines whether measurement should continue with the next item.
protected abstract bool MeasureElement(IVirtualizedElement<T> element)
The realized element to measure.
Returns:Updates or creates elements for visible data items in order, stopping when MeasureElement(IVirtualizedElement<T>) returns false, then removes any remaining unused child elements.
protected virtual void MeasureElements()
Measures the container by delegating item measurement and desired-size calculation to its virtualized layout hooks.
protected override SizeF MeasureOverride(SizeF availableSize)
The maximum size available to the container.
Returns:The desired size reported by EndMeasure().
Overrides:
Removes the element.
Updates the element at concrete position
protected virtual IVirtualizedElement<T> UpdateElement(int position, T data)
The position.
dataTThe data.
Returns:Updates the items' layout
public virtual void UpdateItems()