Skip to content

VirtualizingPanelBase class

Defined in

Namespace: CrissCross.WPF.UI.Controls Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Controls.VirtualizingPanelBase Modifiers: public abstract

Summary

Base abstract class for creating virtualized panels.

Based on https://github.com/sbaeumlisberger/VirtualizingWrapPanel.

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Class hierarchy
classDiagram
class VirtualizingPanelBase
class VirtualizingPanel
VirtualizingPanel <|-- VirtualizingPanelBase
class IScrollInfo {
    <>
}
IScrollInfo <|.. VirtualizingPanelBase

Inherits from: VirtualizingPanel

Implements: IScrollInfo

Constructors

NameSummary
.ctor

Properties

NameSummary
ScrollOwnerGets or sets the scroll owner.
CanVerticallyScrollGets or sets a value indicating whether gets or sets a value that indicates whether the content can be vertically scrolled.
CanHorizontallyScrollGets or sets a value indicating whether gets or sets a value that indicates whether the content can be horizontally scrolled.
ScrollLineDeltaGets or sets scroll line delta for pixel based scrolling. The default value is 16 dp.
MouseWheelDeltaGets or sets mouse wheel delta for pixel based scrolling. The default value is 48 dp.
ScrollLineDeltaItemGets or sets scroll line delta for item based scrolling. The default value is 1 item.
MouseWheelDeltaItemGets or sets mouse wheel delta for item based scrolling. The default value is 3 items.
ExtentWidthGets width of the [Extent](#
ExtentHeightGets height of the [Extent](#
HorizontalOffsetGets the horizontal offset.
VerticalOffsetGets the vertical offset.
ViewportWidthGets the [Viewport](# width.
ViewportHeightGets the [Viewport](# height.
CanHierarchicallyScrollAndVirtualizeCore
ScrollUnitGets the scroll unit.
MouseWheelScrollDirectionGets or sets the direction in which the panel scrolls when user turns the mouse wheel.
IsVirtualizingGets a value indicating whether gets a value that inidicates whether the virtualizing is enabled.
VirtualizationModeGets the virtualization mode.
IsRecyclingGets a value indicating whether returns true if the panel is in VirtualizationMode.Recycling, otherwise false.
CacheLengthGets the cache length before and after the viewport.
CacheLengthUnitGets the Unit of the cache length. Can be Pixel, Item or Page. When the ItemsOwner is a group item it can only be pixel or item.
ItemsControlGets the ItemsControl (e.g. ListView).
ItemsOwnerGets the ItemsControl (e.g. ListView) or if the ItemsControl is grouping a GroupItem.
ItemsGets items collection.
OffsetGets the offset.
ItemContainerGeneratorGets items container.
ItemRangeGets or sets the range of items that a realized in [Viewport](# or cache.
ExtentGets the [Extent](#
ViewportGets the viewport.

Fields

NameSummary
static ScrollLineDeltaPropertyProperty for [ScrollLineDelta](#
static MouseWheelDeltaPropertyProperty for [MouseWheelDelta](#
static ScrollLineDeltaItemPropertyProperty for [ScrollLineDeltaItem](#
static MouseWheelDeltaItemPropertyProperty for [MouseWheelDeltaItem](#

Methods

NameSummary
MakeVisible
SetVerticalOffsetSets the vertical offset.
SetHorizontalOffsetSets the horizontal offset.
LineUp
LineDown
LineLeft
LineRight
MouseWheelUp
MouseWheelDown
MouseWheelLeft
MouseWheelRight
PageUp
PageDown
PageLeft
PageRight
OnItemsChanged
UpdateScrollInfoUpdates scroll offset, extent and viewport.
GetItemIndexFromChildIndexGets item index from the generator.
GetGeneratorPositionFromChildIndexGets the position of children from the generator.
MeasureOverride
RealizeItemsRealizes visible and cached items.
VirtualizeItemsVirtualizes (cleanups) no longer visible or cached items.
ScrollVerticalSets vertical scroll offset by given amount.
ScrollHorizontalSets horizontal scroll offset by given amount.
CalculateExtentCalculates the extent that would be needed to show all items.
UpdateItemRangeCalculates the item range that is visible in the viewport or cached.
GetLineUpScrollAmountGets line up scroll amount.
GetLineDownScrollAmountGets line down scroll amount.
GetLineLeftScrollAmountGets line left scroll amount.
GetLineRightScrollAmountGets line right scroll amount.
GetMouseWheelUpScrollAmountGets mouse wheel up scroll amount.
GetMouseWheelDownScrollAmountGets mouse wheel down scroll amount.
GetMouseWheelLeftScrollAmountGets mouse wheel left scroll amount.
GetMouseWheelRightScrollAmountGets mouse wheel right scroll amount.
GetPageUpScrollAmountGets page up scroll amount.
GetPageDownScrollAmountGets page down scroll amount.
GetPageLeftScrollAmountGets page left scroll amount.
GetPageRightScrollAmountGets page right scroll amount.

Derived types

Inherited members