InterfaceIVisualElementProvider
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:
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
element
CreateElement(object)
Create element using the pased data
Declaration
VisualElement CreateElement(object data)
Parameters
data
Logical data that will be used to initialize the element.
Returns
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
element
data
Returns
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
element
the element to be initilaized
data
with this data the given element should be initialized
Returns
false if the element cannot be initialized with the given data