VirtualizingCollectionView
A custom class that supports rendering group headers for Binarymission VirtualizingWrappanel control.
public sealed class VirtualizingCollectionView : ListCollectionView
Inherits from / implements: ListCollectionView
Members at a glance
VirtualizingCollectionView | Initializes a new instance of the VirtualizingCollectionView class. |
Count | Gets the estimated number of records. |
Groups | Gets the top-level groups. |
GroupsCount | Gets the groups count. |
GetCheckForVirtualizedGroupHeaders | Gets whether to check for virtualized group headers. |
GetIsCurrentItemAVirtualizedGroupHeader | Gets whether the current item is a virtualized group header. |
GetItemAt | Retrieves the item at the specified position in the view. |
OnCollectionChanged | Raises the CollectionChanged event. VirtualizingCollectionView overrides it so the control's own handling runs alongside the base behavior. |
SetCheckForVirtualizedGroupHeaders | Sets whether to check for virtualized group headers. |
SetIsCurrentItemAVirtualizedGroupHeaderProperty | Sets whether the current item is a virtualized group header. |
CheckForVirtualizedGroupHeadersProperty | Gets or sets as to whether to check for virtualized group headers. |
IsCurrentItemAVirtualizedGroupHeaderProperty | Gets or sets as to whether the current item is a virtualized group header. |
Constructors
VirtualizingCollectionView
Initializes a new instance of the VirtualizingCollectionView class.
- list
- The underlying collection, which must implement
IList.
Properties
Count
Gets the estimated number of records.
Returns. One of the following: Value Meaning -1 Could not determine the count of the collection. This might be returned by a "virtualizing" view, where the view deliberately does not account for all items in the underlying collection because the view is attempting to increase efficiency and minimize dependence on always having the entire collection available. any other integer The count of the collection.
Groups
Gets the top-level groups.
Returns. A read-only collection of the top-level groups, or null if there are no groups.
GroupsCount
Gets the groups count.
Value. The groups count.
Methods
GetCheckForVirtualizedGroupHeaders
Gets whether to check for virtualized group headers.
GetIsCurrentItemAVirtualizedGroupHeader
Gets whether the current item is a virtualized group header.
GetItemAt
Retrieves the item at the specified position in the view.
- index
- The zero-based index at which the item is located.
Returns. The item at the specified position in the view.
- ArgumentOutOfRangeException
- If
indexis out of range.
OnCollectionChanged
Raises the CollectionChanged event. VirtualizingCollectionView overrides it so the control's own handling runs alongside the base behavior.
- args
- The data for the event.
SetCheckForVirtualizedGroupHeaders
Sets whether to check for virtualized group headers.
SetIsCurrentItemAVirtualizedGroupHeaderProperty
Sets whether the current item is a virtualized group header.
Fields
CheckForVirtualizedGroupHeadersProperty
Gets or sets as to whether to check for virtualized group headers.
IsCurrentItemAVirtualizedGroupHeaderProperty
Gets or sets as to whether the current item is a virtualized group header.