Interface
IVisualElementProvider

This interface gives the ability to create reusable providers for VisualElements that are in some relation with logical data objects.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public interface IVisualElementProvider

Methods

CleanupElement(VisualElement)

Cleans up when an element that is created with CreateElement() is no longer necessary.

Declaration

cs-api-definition
void CleanupElement(VisualElement element)

Parameters

element

VisualElement

CreateElement(object)

Create element using the pased data

Declaration

cs-api-definition
VisualElement CreateElement(object data)

Parameters

data

object

Logical data that will be used to initialize the element.

Returns

VisualElement

The newly created element if everything is OK; null on error.

IsElementCompatible(VisualElement, object)

Check if an element can be initialized with some logical data.

Declaration

cs-api-definition
bool IsElementCompatible(VisualElement element, object data)

Parameters

element

VisualElement

data

object

Returns

bool

true if the lement can be initialized with the data.

SetElementData(VisualElement, object)

Initialize already created element with logical data (if possible).

Declaration

cs-api-definition
bool SetElementData(VisualElement element, object data)

Parameters

element

VisualElement

the element to be initilaized

data

object

with this data the given element should be initialized

Returns

bool

false if the element cannot be initialized with the given data