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