Class BaseVirtualizedElementProvider<T>
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class BaseVirtualizedElementProvider<T> : IVirtualizedElementProvider<T>
Type Parameters
T
|
Constructors
BaseVirtualizedElementProvider()
Declaration
protected BaseVirtualizedElementProvider()
Properties
CachedElementsCount
Gets the cached elements count.
Declaration
public virtual int CachedElementsCount { get; }
Property Value
System.Int32
The cached elements count. |
DefaultElementSize
Gets or sets the default size of the element.
Declaration
public SizeF DefaultElementSize { get; set; }
Property Value
System.Drawing.SizeF
The default size of the element. |
Implements
Methods
CacheElement(IVirtualizedElement<T>)
Caches the element.
Declaration
public virtual bool CacheElement(IVirtualizedElement<T> element)
Parameters
IVirtualizedElement<T>
element
The element. |
Returns
System.Boolean
|
Implements
ClearCache()
Clears the cache.
Declaration
public virtual void ClearCache()
Implements
CreateElement(T, Object)
Creates the element.
Declaration
public abstract IVirtualizedElement<T> CreateElement(T data, object context)
Parameters
T
data
The data. |
System.Object
context
The context. |
Returns
IVirtualizedElement<T>
|
GetElement(T, Object)
Gets the element from cache or creates it.
Declaration
public virtual IVirtualizedElement<T> GetElement(T data, object context)
Parameters
T
data
The data. |
System.Object
context
The context. |
Returns
IVirtualizedElement<T>
|
Implements
GetElementFromCache(T, Object)
Gets the element from cache.
Declaration
public virtual IVirtualizedElement<T> GetElementFromCache(T data, object context)
Parameters
T
data
The data. |
System.Object
context
The context. |
Returns
IVirtualizedElement<T>
|
GetElementSize(T)
Gets the size of the element.
Declaration
public virtual SizeF GetElementSize(T item)
Parameters
T
item
The item. |
Returns
System.Drawing.SizeF
|
Implements
GetElementSize(IVirtualizedElement<T>)
Gets the size of the element.
Declaration
public virtual SizeF GetElementSize(IVirtualizedElement<T> element)
Parameters
IVirtualizedElement<T>
element
The element. |
Returns
System.Drawing.SizeF
|
Implements
IsCompatible(IVirtualizedElement<T>, T, Object)
Determines whether the specified element is compatible with concrete data.
Declaration
public virtual bool IsCompatible(IVirtualizedElement<T> element, T data, object context)
Parameters
IVirtualizedElement<T>
element
The element. |
T
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Implements
PreInitializeCachedElement(IVirtualizedElement<T>, Object)
Pre-initialize cached element.
Declaration
protected virtual void PreInitializeCachedElement(IVirtualizedElement<T> element, object context)
Parameters
IVirtualizedElement<T>
element
The element. |
System.Object
context
The context. |
ShouldUpdate(IVirtualizedElement<T>, T, Object)
Determine whether the element should be updated.
Declaration
public virtual bool ShouldUpdate(IVirtualizedElement<T> element, T data, object context)
Parameters
IVirtualizedElement<T>
element
The element. |
T
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|