Class PropertyGroupDescription
Description of grouping based on a property value.
public class PropertyGroupDescription : GroupDescription, INotifyPropertyChanged
- Inheritance
-
PropertyGroupDescription
- Implements
Constructors
- PropertyGroupDescription()
Initializes a new instance of PropertyGroupDescription.
- PropertyGroupDescription(string)
Initializes a new instance of PropertyGroupDescription.
- PropertyGroupDescription(string, IValueConverter)
Initializes a new instance of PropertyGroupDescription.
- PropertyGroupDescription(string, IValueConverter, StringComparison)
Initializes a new instance of PropertyGroupDescription.
Properties
- CompareNameAscending
A comparer that orders groups in ascending order of Name. This can be used as a value for GroupDescription.CustomSort
- CompareNameDescending
A comparer that orders groups in descending order of Name. This can be used as a value for GroupDescription.CustomSort
- Converter
This converter is applied to the property value (or the item) to produce the final value used to determine which group(s) an item belongs to. If the delegate returns an ICollection, the item is added to multiple groups - one for each member of the collection.
- PropertyName
The name of the property whose value is used to determine which group(s) an item belongs to. If PropertyName is null, the item itself is used.
- StringComparison
This governs the comparison between an item's value (as determined by PropertyName and Converter) and a group's name. It is ignored unless both comparands are strings. The default value is StringComparison.Ordinal.
Methods
- GroupNameFromItem(object, int, CultureInfo)
Return the group name(s) for the given item
- NamesMatch(object, object)
Return true if the names match (i.e the item should belong to the group).