Class VirtualizingCellUIElementBin<T>
Represents a class that implements a cache of UIElement of the given type parameter T. It is used by the GridVirtualizingCellRendererBase renderer to recycle UIElement 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 , instead only the contents of the UIElement will be reinitialized with cell contents.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class VirtualizingCellUIElementBin<T> : Dictionary<GridCellRendererBase, Queue<WeakReference>> where T : UIElement
Type Parameters
Name | Description |
---|---|
T | Type of the UIElement to be recycled |
Constructors
VirtualizingCellUIElementBin()
Declaration
public VirtualizingCellUIElementBin()
Properties
Item[GridCellRendererBase]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[GridCellRendererBase renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
GridCellRendererBase | renderer |
Property Value
Type |
---|
System.Collections.Generic.Queue<System.WeakReference> |
Methods
Dequeue(GridCellRendererBase)
Dequeues an UIElement from the specified renderer.
Declaration
public T Dequeue(GridCellRendererBase renderer)
Parameters
Type | Name | Description |
---|---|---|
GridCellRendererBase | renderer | Specifies the corresponding renderer to dequeue the UIElement |
Returns
Type | Description |
---|---|
T | Returns the UIelement. |
Enqueue(GridCellRendererBase, T)
Enqueues the UI element to the specified renderer.
Declaration
public void Enqueue(GridCellRendererBase renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
GridCellRendererBase | renderer | The corresponding renderer to enqueue the UIElement in it. |
T | uiElement | The corresponding UIElement to perform enqueue operation. |