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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| ScrollOwner | Gets or sets the scroll owner. |
| CanVerticallyScroll | Gets or sets a value indicating whether gets or sets a value that indicates whether the content can be vertically scrolled. |
| CanHorizontallyScroll | Gets or sets a value indicating whether gets or sets a value that indicates whether the content can be horizontally scrolled. |
| ScrollLineDelta | Gets or sets scroll line delta for pixel based scrolling. The default value is 16 dp. |
| MouseWheelDelta | Gets or sets mouse wheel delta for pixel based scrolling. The default value is 48 dp. |
| ScrollLineDeltaItem | Gets or sets scroll line delta for item based scrolling. The default value is 1 item. |
| MouseWheelDeltaItem | Gets or sets mouse wheel delta for item based scrolling. The default value is 3 items. |
| ExtentWidth | Gets width of the [Extent](# |
| ExtentHeight | Gets height of the [Extent](# |
| HorizontalOffset | Gets the horizontal offset. |
| VerticalOffset | Gets the vertical offset. |
| ViewportWidth | Gets the [Viewport](# width. |
| ViewportHeight | Gets the [Viewport](# height. |
| CanHierarchicallyScrollAndVirtualizeCore | |
| ScrollUnit | Gets the scroll unit. |
| MouseWheelScrollDirection | Gets or sets the direction in which the panel scrolls when user turns the mouse wheel. |
| IsVirtualizing | Gets a value indicating whether gets a value that inidicates whether the virtualizing is enabled. |
| VirtualizationMode | Gets the virtualization mode. |
| IsRecycling | Gets a value indicating whether returns true if the panel is in VirtualizationMode.Recycling, otherwise false. |
| CacheLength | Gets the cache length before and after the viewport. |
| CacheLengthUnit | Gets 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. |
| ItemsControl | Gets the ItemsControl (e.g. ListView). |
| ItemsOwner | Gets the ItemsControl (e.g. ListView) or if the ItemsControl is grouping a GroupItem. |
| Items | Gets items collection. |
| Offset | Gets the offset. |
| ItemContainerGenerator | Gets items container. |
| ItemRange | Gets or sets the range of items that a realized in [Viewport](# or cache. |
| Extent | Gets the [Extent](# |
| Viewport | Gets the viewport. |
Fields¶
| Name | Summary |
|---|---|
| static ScrollLineDeltaProperty | Property for [ScrollLineDelta](# |
| static MouseWheelDeltaProperty | Property for [MouseWheelDelta](# |
| static ScrollLineDeltaItemProperty | Property for [ScrollLineDeltaItem](# |
| static MouseWheelDeltaItemProperty | Property for [MouseWheelDeltaItem](# |
Methods¶
| Name | Summary |
|---|---|
| MakeVisible | |
| SetVerticalOffset | Sets the vertical offset. |
| SetHorizontalOffset | Sets the horizontal offset. |
| LineUp | |
| LineDown | |
| LineLeft | |
| LineRight | |
| MouseWheelUp | |
| MouseWheelDown | |
| MouseWheelLeft | |
| MouseWheelRight | |
| PageUp | |
| PageDown | |
| PageLeft | |
| PageRight | |
| OnItemsChanged | |
| UpdateScrollInfo | Updates scroll offset, extent and viewport. |
| GetItemIndexFromChildIndex | Gets item index from the generator. |
| GetGeneratorPositionFromChildIndex | Gets the position of children from the generator. |
| MeasureOverride | |
| RealizeItems | Realizes visible and cached items. |
| VirtualizeItems | Virtualizes (cleanups) no longer visible or cached items. |
| ScrollVertical | Sets vertical scroll offset by given amount. |
| ScrollHorizontal | Sets horizontal scroll offset by given amount. |
| CalculateExtent | Calculates the extent that would be needed to show all items. |
| UpdateItemRange | Calculates the item range that is visible in the viewport or cached. |
| GetLineUpScrollAmount | Gets line up scroll amount. |
| GetLineDownScrollAmount | Gets line down scroll amount. |
| GetLineLeftScrollAmount | Gets line left scroll amount. |
| GetLineRightScrollAmount | Gets line right scroll amount. |
| GetMouseWheelUpScrollAmount | Gets mouse wheel up scroll amount. |
| GetMouseWheelDownScrollAmount | Gets mouse wheel down scroll amount. |
| GetMouseWheelLeftScrollAmount | Gets mouse wheel left scroll amount. |
| GetMouseWheelRightScrollAmount | Gets mouse wheel right scroll amount. |
| GetPageUpScrollAmount | Gets page up scroll amount. |
| GetPageDownScrollAmount | Gets page down scroll amount. |
| GetPageLeftScrollAmount | Gets page left scroll amount. |
| GetPageRightScrollAmount | Gets page right scroll amount. |