Interface
IVirtualizedElementProvider<T>

Represents interface for virtualized element provider

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Type Parameters:

T

Syntax:

cs-api-definition
public interface IVirtualizedElementProvider<T>

Properties

DefaultElementSize

Gets or sets the default size of the element.

Declaration

cs-api-definition
SizeF DefaultElementSize { get; set; }

Property Value

SizeF

The default size of the element.

Methods

CacheElement(IVirtualizedElement<T>)

Caches the element.

Declaration

cs-api-definition
bool CacheElement(IVirtualizedElement<T> element)

Parameters

element

IVirtualizedElement<T>

The element.

Returns

bool

ClearCache()

Clears the cached elements.

Declaration

cs-api-definition
void ClearCache()

GetElement(T, object)

Gets the element.

Declaration

cs-api-definition
IVirtualizedElement<T> GetElement(T data, object context)

Parameters

data

T

The data.

context

object

The context.

Returns

IVirtualizedElement<T>

GetElementSize(IVirtualizedElement<T>)

Gets the size of the element.

Declaration

cs-api-definition
SizeF GetElementSize(IVirtualizedElement<T> element)

Parameters

element

IVirtualizedElement<T>

The element.

Returns

SizeF

GetElementSize(T)

Gets the size of the element.

Declaration

cs-api-definition
SizeF GetElementSize(T data)

Parameters

data

T

The data.

Returns

SizeF

IsCompatible(IVirtualizedElement<T>, T, object)

Determines whether the specified element is compatible with its data.

Declaration

cs-api-definition
bool IsCompatible(IVirtualizedElement<T> element, T data, object context)

Parameters

element

IVirtualizedElement<T>

The element.

data

T

The data.

context

object

The context.

Returns

bool

true if the specified element is compatible; otherwise, false.

ShouldUpdate(IVirtualizedElement<T>, T, object)

Shoulds the update.

Declaration

cs-api-definition
bool ShouldUpdate(IVirtualizedElement<T> element, T data, object context)

Parameters

element

IVirtualizedElement<T>

The element.

data

T

The data.

context

object

The context.

Returns

bool