ClassListViewPropertyGroupDescriptor
Represents a group descriptor that groups items by a specified property name. Inherits from GroupDescriptorBase to provide property-based grouping functionality.
Definition
Namespace:Telerik.Maui.Controls.Compatibility.DataControls.ListView
Assembly:Telerik.Maui.Controls.Compatibility.dll
Syntax:
public class ListViewPropertyGroupDescriptor : GroupDescriptorBase, IComparer, IComparer<object>, IKeyLookup
Inheritance: objectDataDescriptorBaseOrderedDescriptorBaseGroupDescriptorBaseListViewPropertyGroupDescriptor
Implements:
Inherited Members
Constructors
ListViewPropertyGroupDescriptor()
Declaration
public ListViewPropertyGroupDescriptor()
Fields
PropertyNameProperty
Identifies the PropertyName property.
Declaration
public static readonly BindableProperty PropertyNameProperty
Field Value
BindableProperty
Properties
PropertyName
Gets or sets the name of the property to group by.
Declaration
public string PropertyName { get; set; }
Property Value
The property name used for grouping items.
Methods
GetDescriptorCollection(RadListView)
Gets the descriptor collection from the specified RadListView.
Declaration
protected override IList GetDescriptorCollection(RadListView listView)
Parameters
listView
The RadListView to get descriptors from.
Returns
The collection of group descriptors.
Overrides
GetKeyCore(object)
Gets the grouping key for the specified item based on the property name.
Declaration
protected override object GetKeyCore(object item)
Parameters
item
The item to get the grouping key for.
Returns
The value of the specified property for the item.
Exceptions
Thrown when PropertyName is null or empty.
Overrides
OnPropertyChanged(string)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
The name of the property that changed.
Overrides