menu

WPF

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

    Show / Hide Table of Contents

    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
    System.Collections.Generic.Dictionary<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>
    VirtualizingCellUIElementBin<T>
    Implements
    System.Collections.Generic.IDictionary<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>
    System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyDictionary<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>
    System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>
    System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>
    System.Collections.IEnumerable
    System.Runtime.Serialization.ISerializable
    System.Runtime.Serialization.IDeserializationCallback
    Inherited Members
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Add(Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Clear()
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Comparer
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.ContainsKey(Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.ContainsValue(System.Collections.Generic.Queue<System.WeakReference>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Count
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.GetEnumerator()
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Item[Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame]
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Keys
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.OnDeserialization(System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Remove(Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.Add(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.Contains(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.CopyTo(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>[], System.Int32)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.IsReadOnly
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.Remove(System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Keys
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IDictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Values
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>>.GetEnumerator()
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Keys
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.Generic.IReadOnlyDictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Values
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.IsSynchronized
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.ICollection.SyncRoot
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Add(System.Object, System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Contains(System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.GetEnumerator()
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsFixedSize
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.IsReadOnly
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Item[System.Object]
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Keys
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Remove(System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IDictionary.Values
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.System.Collections.IEnumerable.GetEnumerator()
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.TryGetValue(Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>)
    System.Collections.Generic.Dictionary<Syncfusion.Windows.Controls.Scroll.ScrollControlChildFrame, System.Collections.Generic.Queue<System.WeakReference>>.Values
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Controls.Cells
    Assembly: Syncfusion.GridCommon.WPF.dll
    Syntax
    public class VirtualizingCellUIElementBin<T> : Dictionary<ScrollControlChildFrame, Queue<WeakReference>>, IDictionary<ScrollControlChildFrame, Queue<WeakReference>>, ICollection<KeyValuePair<ScrollControlChildFrame, Queue<WeakReference>>>, IDictionary, ICollection, IReadOnlyDictionary<ScrollControlChildFrame, Queue<WeakReference>>, IReadOnlyCollection<KeyValuePair<ScrollControlChildFrame, Queue<WeakReference>>>, IEnumerable<KeyValuePair<ScrollControlChildFrame, Queue<WeakReference>>>, IEnumerable, ISerializable, IDeserializationCallback 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()

    Implements

    System.Collections.Generic.IDictionary<TKey, TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.Runtime.Serialization.ISerializable
    System.Runtime.Serialization.IDeserializationCallback

    Extension Methods

    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, Int32, Func<TElement, Object>[])
    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, IEnumerable<Func<TElement, Object>>)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    ChartExtensionUtils.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved