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.Spreadsheet.CellRenderer
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class VirtualizingCellUIElementBin<T> : Dictionary<ISpreadsheetCellRenderer, Queue<WeakReference>> where T : UIElement
Type Parameters
Name | Description |
---|---|
T | Type of the Element |
Constructors
VirtualizingCellUIElementBin()
Declaration
public VirtualizingCellUIElementBin()
Properties
Item[ISpreadsheetCellRenderer]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[ISpreadsheetCellRenderer renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer |
Property Value
Type | Description |
---|---|
System.Collections.Generic.Queue<System.WeakReference> | An instance of System.Collections.Generic.Queue<>. |
Methods
Dequeue(ISpreadsheetCellRenderer)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(ISpreadsheetCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer | An instance of ISpreadsheetCellRenderer. |
Returns
Type | Description |
---|---|
T | An UIElement |
Enqueue(ISpreadsheetCellRenderer, T)
Enqueues the specified UI element.
Declaration
public void Enqueue(ISpreadsheetCellRenderer renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
ISpreadsheetCellRenderer | renderer | An instance of ISpreadsheetCellRenderer. |
T | uiElement | The UIElement. |