Class GraphicCellUIElementBin<T>
This class implements a cache of UIElement of the given type parameter T. It is used by the GraphicCellRendererBase<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
GraphicCellUIElementBin<T>
Namespace: Syncfusion.UI.Xaml.Spreadsheet.GraphicCells
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class GraphicCellUIElementBin<T> : Dictionary<IGraphicCellRenderer, Queue<WeakReference>> where T : UIElement
Type Parameters
Name | Description |
---|---|
T | Type of the Element |
Constructors
GraphicCellUIElementBin()
Declaration
public GraphicCellUIElementBin()
Properties
Item[IGraphicCellRenderer]
Gets the System.Collections.Generic.Queue<> for the specified Renderer.
Declaration
public Queue<WeakReference> this[IGraphicCellRenderer renderer] { get; }
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer |
Property Value
Type |
---|
System.Collections.Generic.Queue<System.WeakReference> |
Methods
Dequeue(IGraphicCellRenderer)
Dequeues an UIElement from the specified canvas.
Declaration
public T Dequeue(IGraphicCellRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer | The canvas. |
Returns
Type |
---|
T |
Enqueue(IGraphicCellRenderer, T)
Enqueues the specified UI element.
Declaration
public void Enqueue(IGraphicCellRenderer renderer, T uiElement)
Parameters
Type | Name | Description |
---|---|---|
IGraphicCellRenderer | renderer | |
T | uiElement | The UI element. |