Export (0) Print
Expand All

ItemCollection.GroupDescriptions Property

Gets a collection of GroupDescription objects that defines how to group the items.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override ObservableCollection<GroupDescription> GroupDescriptions { get; }

Property Value

Type: System.Collections.ObjectModel.ObservableCollection<GroupDescription>
An ObservableCollection<T> of GroupDescription objects. The collection is indexed by the group levels.

Implements

ICollectionView.GroupDescriptions

Use the CanGroup property to test whether the current implementation supports grouping before adding GroupDescription objects.

NoteNote

This property can be set only by accessing the collection object and using its various methods, such as Add. The property to access the collection object is read-only, while the collection itself is read-write.

For a related example, see PropertyGroupDescription.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft