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:
public interface IVisualElementProvider
Methods
Cleans up when an element that is created with CreateElement() is no longer necessary.
Create element using the pased data
VisualElement CreateElement(object data)
Logical data that will be used to initialize the element.
Returns:The newly created element if everything is OK; null on error.
Check if an element can be initialized with some logical data.
bool IsElementCompatible(VisualElement element, object data)
true if the lement can be initialized with the data.
Initialize already created element with logical data (if possible).
bool SetElementData(VisualElement element, object data)
the element to be initilaized
dataobjectwith this data the given element should be initialized
Returns:false if the element cannot be initialized with the given data