Show / Hide Table of Contents

Class CollectionViewGroup

Represents a group created by a System.Windows.Data.CollectionView object based on the System.Windows.Data.CollectionView.GroupDescriptions.

Inheritance
System.Object
CollectionViewGroup
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public abstract class CollectionViewGroup : INotifyPropertyChanged

Constructors

| Improve this Doc View Source

CollectionViewGroup(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 Source

IsBottomLevel

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Name

Gets the name of this group.

Declaration
public object Name { get; }
Property Value
Type Description
System.Object

The name of this group.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

OnPropertyChanged(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 Source

PropertyChanged

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 Source

INotifyPropertyChanged.PropertyChanged

PropertyChanged event (per System.ComponentModel.INotifyPropertyChanged).

Declaration
event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged
Returns
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source