Creates virtualized elements of a fixed type and reuses cached instances that are compatible with the requested item and context.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The data item type represented by each element.
T1
An element type implementing IVirtualizedElement<T> and providing a parameterless constructor.
Syntax:
public class VirtualizedPanelElementProvider<T, T1> : BaseVirtualizedElementProvider<T>, IVirtualizedElementProvider<T> where T1 : IVirtualizedElement<T>, new()
Inheritance: objectBaseVirtualizedElementProvider<T>VirtualizedPanelElementProvider<T, T1>
Derived Classes:
Implements:
Inherited Members
Constructors
public VirtualizedPanelElementProvider()
Methods
Creates a new element without attaching the requested data or context; attachment is the caller's responsibility.
public override IVirtualizedElement<T> CreateElement(T data, object context)
The item for which an element is requested.
contextobjectThe context in which the element will be used.
Returns:A new instance of T1.
Overrides:
Determines whether an existing element should be updated by comparing its current data with the requested item.
public override bool ShouldUpdate(IVirtualizedElement<T> element, T data, object context)
The element currently representing an item.
dataTThe item the element is requested to represent.
contextobjectThe context; this implementation does not use it when deciding whether to update.
Returns:true when element's current data is not equal to data; otherwise, false.
Overrides: