Class VirtualizingCellUIElementBin<T>
This class implements a cache of UIElement of the given type parameter T. It is used by the VirtualizingCellRendererBase<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.
A queue is maintained for each child frame in a ScrollControl.
Inheritance
System.Object
VirtualizingCellUIElementBin<T>
Namespace: Syncfusion.Windows.Controls.Cells
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public class VirtualizingCellUIElementBin<T> : Dictionary<ScrollControlChildFrame, Queue<WeakReference>> where T : UIElement
Type Parameters
| Name |
|---|
| T |
Constructors
VirtualizingCellUIElementBin()
Declaration
public VirtualizingCellUIElementBin()
Properties
Item[ScrollControlChildFrame]
Gets the System.Collections.Generic.Queue<> for the specified canvas.
Declaration
public Queue<WeakReference> this[ScrollControlChildFrame canvas] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollControlChildFrame | canvas |
Property Value
| Type |
|---|
| System.Collections.Generic.Queue<System.WeakReference> |
Methods
Dequeue(ScrollControlChildFrame)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(ScrollControlChildFrame canvas)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollControlChildFrame | canvas | The canvas. |
Returns
| Type |
|---|
| T |
Enqueue(T)
Enqueues the specified UI element.
Declaration
public void Enqueue(T uiElement)
Parameters
| Type | Name | Description |
|---|---|---|
| T | uiElement | The UI element. |
Unload()
Unloads all UIElement elements maintained by this cache.
Declaration
public void Unload()