Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
Syntax:
public abstract class BaseVirtualizedElementProvider<T> : IVirtualizedElementProvider<T>
Inheritance: objectBaseVirtualizedElementProvider<T>
Derived Classes:
Implements:
Constructors
protected BaseVirtualizedElementProvider()
Properties
Gets the cached elements count.
public virtual int CachedElementsCount { get; }
The cached elements count.
Gets or sets the default size of the element.
public SizeF DefaultElementSize { get; set; }
The default size of the element.
Implements:
Methods
Caches the element.
public virtual bool CacheElement(IVirtualizedElement<T> element)
The element.
Returns:Implements:
Clears the cache.
public virtual void ClearCache()
Implements:
Creates the element.
public abstract IVirtualizedElement<T> CreateElement(T data, object context)
The data.
contextobjectThe context.
Returns:Gets the element from cache or creates it.
public virtual IVirtualizedElement<T> GetElement(T data, object context)
The data.
contextobjectThe context.
Returns:Implements:
Gets the element from cache.
public virtual IVirtualizedElement<T> GetElementFromCache(T data, object context)
The data.
contextobjectThe context.
Returns:Gets the size of the element.
public virtual SizeF GetElementSize(IVirtualizedElement<T> element)
The element.
Returns:Implements:
Gets the size of the element.
Determines whether the specified element is compatible with concrete data.
public virtual bool IsCompatible(IVirtualizedElement<T> element, T data, object context)
The element.
dataTThe data.
contextobjectThe context.
Returns:true if the specified element is compatible; otherwise, false.
Implements:
Pre-initialize cached element.
protected virtual void PreInitializeCachedElement(IVirtualizedElement<T> element, object context)
The element.
contextobjectThe context.
Determine whether the element should be updated.
public virtual bool ShouldUpdate(IVirtualizedElement<T> element, T data, object context)
The element.
dataTThe data.
contextobjectThe context.
Returns:Implements: