Class CollectionViewGroup
Represents a group created by a System.Windows.Data.CollectionView object based on the System.Windows.Data.CollectionView.GroupDescriptions.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public abstract class CollectionViewGroup : INotifyPropertyChanged
Constructors
| Improve this Doc View SourceCollectionViewGroup(Object)
Initializes a new instance of the CollectionViewGroup class with the specified group name.
Declaration
protected CollectionViewGroup(object name)
Parameters
Type | Name | Description |
---|---|---|
System.Object | name | The name of the group. |
Properties
| Improve this Doc View SourceIsBottomLevel
Gets a value that indicates whether this group has any subgroups.
Declaration
public abstract bool IsBottomLevel { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if this group is at the bottom level and does not have any subgroups; otherwise, false. |
ItemCount
Gets the number of data items in the subtree under this group.
Declaration
public int ItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of data items in the subtree under this group. |
Items
Gets the items that are immediate children of the group.
Declaration
public ReadOnlyObservableCollection<object> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyObservableCollection<System.Object> | A read-only collection of the immediate items in this group. This is either a collection of subgroups or a collection of data items if this group does not have any subgroups. |
Name
Gets the name of this group.
Declaration
public object Name { get; }
Property Value
Type | Description |
---|---|
System.Object | The name of this group. |
ProtectedItemCount
Gets or sets the number of data items in the subtree under this group.
Declaration
protected int ProtectedItemCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of data items in the subtree under this group. |
ProtectedItems
Gets the immediate items that are contained in this group.
Declaration
protected ObservableCollection<object> ProtectedItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Object> | The immediate items that are contained in this group. |
Methods
| Improve this Doc View SourceOnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event with the provided arguments.
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.PropertyChangedEventArgs | e | The event data. |
Events
| Improve this Doc View SourcePropertyChanged
Occurs when a property value changes.
Declaration
protected virtual event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Explicit Interface Implementations
| Improve this Doc View SourceINotifyPropertyChanged.PropertyChanged
PropertyChanged event (per System.ComponentModel.INotifyPropertyChanged).
Declaration
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
Returns
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |