menu

WinUI

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

    Show / Hide Table of Contents

    Class VirtualizingCellUIElementBin<T>

    Represents a class that implements a cache of UIElement of the given type parameter T. It is used by the GridVirtualizingCellRendererBase 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
    System.Object
    VirtualizingCellUIElementBin<T>
    Namespace: Syncfusion.UI.Xaml.DataGrid.Renderers
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class VirtualizingCellUIElementBin<T> : Dictionary<GridCellRendererBase, Queue<WeakReference>> where T : UIElement
    Type Parameters
    Name Description
    T

    Type of the UIElement to be recycled

    Constructors

    VirtualizingCellUIElementBin()

    Declaration
    public VirtualizingCellUIElementBin()

    Properties

    Item[GridCellRendererBase]

    Gets the System.Collections.Generic.Queue<> for the specified Renderer.

    Declaration
    public Queue<WeakReference> this[GridCellRendererBase renderer] { get; }
    Parameters
    Type Name Description
    GridCellRendererBase renderer
    Property Value
    Type
    System.Collections.Generic.Queue<System.WeakReference>

    Methods

    Dequeue(GridCellRendererBase)

    Dequeues an UIElement from the specified renderer.

    Declaration
    public T Dequeue(GridCellRendererBase renderer)
    Parameters
    Type Name Description
    GridCellRendererBase renderer

    Specifies the corresponding renderer to dequeue the UIElement

    Returns
    Type Description
    T

    Returns the UIelement.

    Enqueue(GridCellRendererBase, T)

    Enqueues the UI element to the specified renderer.

    Declaration
    public void Enqueue(GridCellRendererBase renderer, T uiElement)
    Parameters
    Type Name Description
    GridCellRendererBase renderer

    The corresponding renderer to enqueue the UIElement in it.

    T uiElement

    The corresponding UIElement to perform enqueue operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved