PropertyGroupDescription Class

 

Describes the grouping of items using a property name as the criteria.

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

System.Object
  System.ComponentModel.GroupDescription
    System.Windows.Data.PropertyGroupDescription

Public Class PropertyGroupDescription
	Inherits GroupDescription

NameDescription
System_CAPS_pubmethodPropertyGroupDescription()

Initializes a new instance of the PropertyGroupDescription class.

System_CAPS_pubmethodPropertyGroupDescription(String)

Initializes a new instance of the PropertyGroupDescription class with the specified property name.

System_CAPS_pubmethodPropertyGroupDescription(String, IValueConverter)

Initializes a new instance of the PropertyGroupDescription class with the specified property name and converter.

System_CAPS_pubmethodPropertyGroupDescription(String, IValueConverter, StringComparison)

Initializes a new instance of the PropertyGroupDescription class with the specified parameters.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCompareNameAscending

Gets or sets an IComparer value that orders groups in ascending order of name.

System_CAPS_pubpropertySystem_CAPS_staticCompareNameDescending

Gets an IComparer value that orders groups in descending order of name.

System_CAPS_pubpropertyConverter

Gets or sets a converter to apply to the property value or the item to produce the final value that is used to determine which group(s) an item belongs to.

System_CAPS_pubpropertyCustomSort

Gets or sets a custom comparer that sorts groups using an object that implements IComparer.(Inherited from GroupDescription.)

System_CAPS_pubpropertyGroupNames

Gets the collection of names that are used to initialize a group with a set of subgroups with the given names.(Inherited from GroupDescription.)

System_CAPS_pubpropertyPropertyName

Gets or sets the name of the property that is used to determine which group(s) an item belongs to.

System_CAPS_pubpropertySortDescriptions

Gets the collection of sort criteria in which to sort the groups.(Inherited from GroupDescription.)

System_CAPS_pubpropertyStringComparison

Gets or sets a StringComparison value that specifies the comparison between the value of an item (as determined by PropertyName and Converter) and the name of a group.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGroupNameFromItem(Object, Int32, CultureInfo)

Returns the group name(s) for the given item. (Overrides GroupDescription.GroupNameFromItem(Object, Int32, CultureInfo).)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodNamesMatch(Object, Object)

Returns a value that indicates whether the group name and the item name match so that the item belongs to the group.(Overrides GroupDescription.NamesMatch(Object, Object).)

System_CAPS_protmethodOnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.(Inherited from GroupDescription.)

System_CAPS_pubmethodShouldSerializeGroupNames()

Returns whether serialization processes should serialize the effective value of the GroupNames property on instances of this class.(Inherited from GroupDescription.)

System_CAPS_pubmethodShouldSerializeSortDescriptions()

Returns whether serialization processes should serialize the effective value of the SortDescriptions property on instances of this class.(Inherited from GroupDescription.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_proteventPropertyChanged

Occurs when a property value changes.(Inherited from GroupDescription.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_priveventINotifyPropertyChanged.PropertyChanged

Occurs when a property value changes.(Inherited from GroupDescription.)

Views support the functionality of grouping, which allows the user to partition the collection in the collection view into logical groups. The groups can be explicit, where the user supplies a list of groups, or implicit, where the groups are generated dynamically depending on the data.

PropertyGroupDescription allows you to create implicit groups based on a PropertyName. If you simply want to group by a property you can set the PropertyName property. If you want to change the value that is eventually used for group you can use the Converter property to supply a value converter. For example, you may want to group items based on the first letter of a name. If the PropertyName property is not set, the item itself is passed to the value converter. The converter may return a collection, which indicates the items can appear in more than one group.

You can also define how string comparison should take place using the StringComparison property.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: