다음을 통해 공유


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
Protected methodSupported by Silverlight for Windows Phone CollectionViewGroup Initializes a new instance of the CollectionViewGroup class with the specified group name.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone IsBottomLevel Gets a value that indicates whether this group has any subgroups.
Public propertySupported by Silverlight for Windows Phone ItemCount Gets the number of data items in the subtree under this group.
Public propertySupported by Silverlight for Windows Phone Items Gets the items that are immediate children of the group.
Public propertySupported by Silverlight for Windows Phone Name Gets the name of this group.
Protected propertySupported by Silverlight for Windows Phone ProtectedItemCount Gets or sets the number of data items in the subtree under this group.
Protected propertySupported by Silverlight for Windows Phone ProtectedItems Gets the immediate items that are contained in this group.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone 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.)
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone OnPropertyChanged Raises the PropertyChanged event with the provided arguments.
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Protected eventSupported by Silverlight for Windows Phone PropertyChanged Occurs when a property value changes.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate event 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.

See Also

Reference