Class VirtualizingCellUIElementBin<T>
This class implements a cache of UIElement of the given type parameter T. It is used by the VirtualizingCellUIElementBin<T> renderer to recycle UIElement elements for cells that were scrolled out of view and delay unloading of UIElements. This reduces the number of times the UIElement needs to be created or unloaded and instead only the contents of the UIElement will be reinitialized with cell contents.
Inheritance
System.Object
VirtualizingCellUIElementBin<T>
Namespace: Syncfusion.UI.Xaml.CellGrid.GridCellRenderer
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class VirtualizingCellUIElementBin<T> : Dictionary<IGridCellRenderer, Queue<WeakReference>> where T : UIElement
Type Parameters
Name | Description |
---|---|
T | Type of the Element |
Constructors
VirtualizingCellUIElementBin()
Declaration
public VirtualizingCellUIElementBin()
Properties
Item[IGridCellRenderer]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[IGridCellRenderer renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
IGridCellRenderer | renderer |
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<System.WeakReference> | An instance of System.Collections.Generic.Queue<>. |
Methods
Dequeue(IGridCellRenderer)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(IGridCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
IGridCellRenderer | renderer | An instance of |
Returns
Type | Description |
---|---|
T | An UIElement |
Enqueue(IGridCellRenderer, T)
Enqueues the specified UI element.
Declaration
public void Enqueue(IGridCellRenderer renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
IGridCellRenderer | renderer | An instance of |
T | uiElement | The UIElement. |