CollectionViewGroup Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents a group created by a PagedCollectionView object based on its GroupDescriptions.
Inheritance Hierarchy
System.Object
System.Windows.Data.CollectionViewGroup
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
<TypeForwardedFromAttribute("System.Windows.Data, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")> _
Public MustInherit Class CollectionViewGroup _
Implements INotifyPropertyChanged
[TypeForwardedFromAttribute("System.Windows.Data, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
public abstract class CollectionViewGroup : INotifyPropertyChanged
The CollectionViewGroup type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CollectionViewGroup | Initializes a new instance of the CollectionViewGroup class with the specified group name. |
Top
Properties
Name | Description | |
---|---|---|
IsBottomLevel | Gets a value that indicates whether this group has any subgroups. | |
ItemCount | Gets the number of data items in the subtree under this group. | |
Items | Gets the items that are immediate children of the group. | |
Name | Gets the name of this group. | |
ProtectedItemCount | Gets or sets the number of data items in the subtree under this group. | |
ProtectedItems | Gets the immediate items that are contained in this group. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnPropertyChanged | Raises the PropertyChanged event with the provided arguments. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
INotifyPropertyChanged.PropertyChanged | For a description of this member, see INotifyPropertyChanged.PropertyChanged. |
Top
Remarks
When you define groups by using GroupDescriptions, your view object wraps each group in a CollectionViewGroup object.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.