Class GroupDescription
Base class for group descriptions. A GroupDescription describes how to divide the items in a collection into groups.
Implements
Inherited Members
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public abstract class GroupDescription : INotifyPropertyChanged
Constructors
| Improve this Doc View SourceGroupDescription()
Initializes a new instance of GroupDescription.
Declaration
protected GroupDescription()
Properties
| Improve this Doc View SourceCustomSort
Set a custom comparer to sort groups using an object that implements IComparer.
Declaration
public IComparer CustomSort { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IComparer |
Remarks
Note: Setting the custom comparer object will clear previously set SortDescriptions.
GroupNames
This list of names is used to initialize a group with a set of subgroups with the given names. (Additional subgroups may be added later, if there are items that don't match any of the names.)
Declaration
public ObservableCollection<object> GroupNames { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Object> |
SortDescriptions
Collection of Sort criteria to sort the groups.
Declaration
public SortDescriptionCollection SortDescriptions { get; }
Property Value
Type | Description |
---|---|
SortDescriptionCollection |
Methods
| Improve this Doc View SourceGroupNameFromItem(Object, Int32, CultureInfo)
Return the group name(s) for the given item
Declaration
public abstract object GroupNameFromItem(object item, int level, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | |
System.Int32 | level | |
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.Object |
NamesMatch(Object, Object)
Return true if the names match (i.e the item should belong to the group).
Declaration
public virtual bool NamesMatch(object groupName, object itemName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | groupName | |
System.Object | itemName |
Returns
Type | Description |
---|---|
System.Boolean |
OnPropertyChanged(PropertyChangedEventArgs)
A subclass can call this method to raise the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.PropertyChangedEventArgs | e |
Events
| Improve this Doc View SourcePropertyChanged
PropertyChanged event (per System.ComponentModel.INotifyPropertyChanged).
Declaration
protected virtual event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Explicit Interface Implementations
| Improve this Doc View SourceINotifyPropertyChanged.PropertyChanged
This event is raised when a property of the group description has changed.
Declaration
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
Returns
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |