menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FakeItemsPanel - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FakeItemsPanel

    An abstract base class that provides functionality for virtualizing items which have vertical orientation.

    Inheritance
    System.Object
    FakeItemsPanel
    TreeViewAdvItemsPanel
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public abstract class FakeItemsPanel : VirtualizingPanel
    Remarks

    An abstract base class that provides functionality for virtualizing items which have vertical orientation and shows fake items.

    Constructors

    FakeItemsPanel()

    Default constructor.

    Declaration
    public FakeItemsPanel()

    Fields

    c_scrollOffset

    Default ScrollOffset

    Declaration
    protected const int c_scrollOffset = 20
    Field Value
    Type
    System.Int32

    Methods

    AddFakeItems(IList)

    Adds fake items.

    Declaration
    public void AddFakeItems(IList list)
    Parameters
    Type Name Description
    System.Collections.IList list

    Fake items.

    AddFakeItems(Object)

    Adds fake item.

    Declaration
    public void AddFakeItems(object element)
    Parameters
    Type Name Description
    System.Object element

    Fake item.

    ArrangeOverride(Size)

    When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The final area within the parent that this element should use to arrange itself and its children.

    Returns
    Type Description
    System.Windows.Size

    The actual size used.

    CleanItems()

    Revirtualize items that are no longer visible.

    Declaration
    protected virtual void CleanItems()

    ClearAllItems()

    Revirtualize all items.

    Declaration
    protected void ClearAllItems()

    Dispose()

    Declaration
    public void Dispose()

    GetArrangeItemSize(UIElement)

    Gets size of the item for ArrangeOverride method.

    Declaration
    protected virtual Size GetArrangeItemSize(UIElement element)
    Parameters
    Type Name Description
    System.Windows.UIElement element
    Returns
    Type
    System.Windows.Size

    GetAvailableHeight(Size)

    Gets available height.

    Declaration
    protected virtual double GetAvailableHeight(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize
    Returns
    Type
    System.Double

    GetAvailableWidth()

    Gets available width.

    Declaration
    protected virtual double GetAvailableWidth()
    Returns
    Type
    System.Double

    GetCashedMeasureSize(Object)

    Gets measured size of the items from hashtable.

    Declaration
    protected Size GetCashedMeasureSize(object key)
    Parameters
    Type Name Description
    System.Object key
    Returns
    Type
    System.Windows.Size

    GetComplateUnvisibleItemSize(Int32)

    Gets appreciate complete size for unvisible item.

    Declaration
    protected virtual Size GetComplateUnvisibleItemSize(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Windows.Size

    GetCompleteItemSize(Int32)

    Gets appreciate complete size for item.

    Declaration
    protected virtual Size GetCompleteItemSize(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Windows.Size

    GetCompletePanelSize(Size)

    Gets appreciate complete size of the this panel.

    Declaration
    protected virtual Size GetCompletePanelSize(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize
    Returns
    Type
    System.Windows.Size

    GetContainerForFakeElement(Object)

    Gets container for fake element.

    Declaration
    protected virtual UIElement GetContainerForFakeElement(object element)
    Parameters
    Type Name Description
    System.Object element
    Returns
    Type
    System.Windows.UIElement

    GetFakeElementType()

    Gets type of the fake element.

    Declaration
    protected virtual Type GetFakeElementType()
    Returns
    Type
    System.Type

    GetIndexNoFakeItems(UIElement)

    Gets index first no faks element.

    Declaration
    public int GetIndexNoFakeItems(UIElement element)
    Parameters
    Type Name Description
    System.Windows.UIElement element

    The element whose index position is required.

    Returns
    Type
    System.Int32

    GetItem(Int32)

    Gets item from owner items control by index.

    Declaration
    protected virtual UIElement GetItem(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Windows.UIElement

    GetKey(Int32)

    Gets key for hashtable.

    Declaration
    protected object GetKey(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    GetMeasureItemSize(UIElement)

    Gets size of the item for MeasureOverride method.

    Declaration
    protected virtual Size GetMeasureItemSize(UIElement element)
    Parameters
    Type Name Description
    System.Windows.UIElement element
    Returns
    Type
    System.Windows.Size

    GetOccupyHeight()

    Gets occupy height of the ScrollViewer.

    Declaration
    protected virtual double GetOccupyHeight()
    Returns
    Type
    System.Double

    GetPanelSize()

    Gets size of the this panel.

    Declaration
    protected virtual Size GetPanelSize()
    Returns
    Type
    System.Windows.Size

    GetTopOffset()

    Gets top vertical offset.

    Declaration
    protected virtual double GetTopOffset()
    Returns
    Type
    System.Double

    HideFakeItems()

    Hide fake items.

    Declaration
    public virtual void HideFakeItems()

    IsNeedCreateContainer(Object)

    Gets value indicating whether need creates new container.

    Declaration
    protected bool IsNeedCreateContainer(object element)
    Parameters
    Type Name Description
    System.Object element
    Returns
    Type
    System.Boolean

    MeasureOverride(Size)

    When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

    Returns
    Type Description
    System.Windows.Size

    The size that this element determines it needs during layout, based on its calculations of child element sizes.

    OnFakeItemsChanged(UIElement)

    Called when the FakeItems collection is changed.

    Declaration
    protected virtual void OnFakeItemsChanged(UIElement element)
    Parameters
    Type Name Description
    System.Windows.UIElement element

    OnInitialized(EventArgs)

    Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.

    Declaration
    protected override void OnInitialized(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The RoutedEventArgs that contains the event data.

    RemoveFakeItems()

    Removes all fake items.

    Declaration
    public static void RemoveFakeItems()

    SetCashedMeasureSize(Object, Size)

    Sets measured size of the items to hashtable.

    Declaration
    protected void SetCashedMeasureSize(object key, Size value)
    Parameters
    Type Name Description
    System.Object key
    System.Windows.Size value

    ShowFakeItems(UIElement, Boolean)

    Shows fake items.

    Declaration
    public virtual void ShowFakeItems(UIElement element, bool bIsTop)
    Parameters
    Type Name Description
    System.Windows.UIElement element
    System.Boolean bIsTop

    Indicates whether fake items will show over element; otherwise fake items will show under element.

    UpdateVisibilityIndex(Size)

    Update visible item index.

    Declaration
    protected virtual void UpdateVisibilityIndex(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved