Creates virtualized tree-node elements and allows the owning tree view to provide custom elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeViewElementProvider : VirtualizedPanelElementProvider<RadTreeNode, TreeNodeElement>, IVirtualizedElementProvider<RadTreeNode>
Inheritance: objectBaseVirtualizedElementProvider<RadTreeNode>VirtualizedPanelElementProvider<RadTreeNode, TreeNodeElement>TreeViewElementProvider
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a provider associated with the specified tree view element.
public TreeViewElementProvider(RadTreeViewElement treeViewElement)
The tree element that supplies node-element creation customization.
Properties
Gets the tree view element associated with this provider.
protected RadTreeViewElement TreeViewElement { get; }
Methods
Uses a node element supplied by the tree view when available; otherwise delegates creation to the base provider.
public override IVirtualizedElement<RadTreeNode> CreateElement(RadTreeNode data, object context)
The tree node represented by the element.
contextobjectThe provider context passed to the base provider when it creates the element.
Returns:IVirtualizedElement<RadTreeNode>
The supplied node element or the base provider's virtualized element.
Overrides:
Uses the node's current actual size as the virtualized element size.
public override SizeF GetElementSize(RadTreeNode item)
The node whose actual size is requested.
Returns:The node's actual size.
Overrides: