Class TreeVirtualizingCellRenderer<T>
TreeVirtualizingCellRenderer is an abstract base class for cell renderers that need live UIElement visuals displayed in a cell. You can derive from this class and provide the type of the UIElement you want to show inside cells as type paramater. The class provides strong typed virtual methods for initializing content of the cell and arranging the cell visuals. See TreeVirtualizingCellRendererBase<T> for more details.
The idea behind this class is to provide a place where we can add general code that should be shared for all cell renderers in the tree derived from TreeVirtualizingCellRendererBase. While this class does at the moment not add meaningfull functionality to TreeVirtualizingCellRendererBase we created this extra layer of inheritance to make it easy to share code for the TreeVirtualizingCellRendererBase base class between grid, tree and common assemblies and keep tree/grid control specific code out of the base class. It is currently not possible with C# to the base class as template type parameter. This is the reason for this copy/paste approach for the codebase for the base class of this class.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Controls.VirtualTreeView
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public abstract class TreeVirtualizingCellRenderer<T> : TreeVirtualizingCellRendererBase<T>, ICellRenderer, IDisposable where T : FrameworkElement, new()
Type Parameters
Name | Description |
---|---|
T | The type of the UIElement that should be placed inside cells |
Constructors
TreeVirtualizingCellRenderer()
Declaration
protected TreeVirtualizingCellRenderer()
Methods
OnUnwireUIElement(T)
Unwire previously wired events from uiElement.
Declaration
protected override void OnUnwireUIElement(T uiElement)
Parameters
Type | Name | Description |
---|---|---|
T | uiElement |
Overrides
OnWireUIElement(T)
Wire events from uiElement
Declaration
protected override void OnWireUIElement(T uiElement)
Parameters
Type | Name | Description |
---|---|---|
T | uiElement |