Interface IVisualElementProvider
This interface gives the ability to create reusable providers for VisualElements that are in some relation with logical data objects.
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public interface IVisualElementProvider
Methods
CleanupElement(VisualElement)
Cleans up when an element that is created with CreateElement() is no longer necessary.
Declaration
void CleanupElement(VisualElement element)
Parameters
VisualElement
element
|
CreateElement(Object)
Create element using the pased data
Declaration
VisualElement CreateElement(object data)
Parameters
System.Object
data
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
bool IsElementCompatible(VisualElement element, object data)
Parameters
VisualElement
element
|
System.Object
data
|
Returns
System.Boolean
true if the lement can be initialized with the data. |
SetElementData(VisualElement, Object)
Initialize already created element with logical data (if possible).
Declaration
bool SetElementData(VisualElement element, object data)
Parameters
VisualElement
element
the element to be initilaized |
System.Object
data
with this data the given element should be initialized |
Returns
System.Boolean
false if the element cannot be initialized with the given data |