menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GraphicCellUIElementBin<T> - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    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.UWP.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.

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved