Class
ListViewPropertySortDescriptor

Represents a sort descriptor that sorts items based on a specific property.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.DataControls.ListView

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class ListViewPropertySortDescriptor : SortDescriptorBase, IComparer, IComparer<object>

Inheritance: objectDataDescriptorBaseOrderedDescriptorBaseSortDescriptorBaseListViewPropertySortDescriptor

Implements: IComparerIComparer<object>

Inherited Members OrderedDescriptorBase.SortOrderPropertyOrderedDescriptorBase.Compare(object, object)OrderedDescriptorBase.SortOrder

Constructors

ListViewPropertySortDescriptor()

Declaration

cs-api-definition
public ListViewPropertySortDescriptor()

Fields

PropertyNameProperty

Identifies the PropertyName property.

Declaration

cs-api-definition
public static readonly BindableProperty PropertyNameProperty

Field Value

BindableProperty

Properties

PropertyName

Gets or sets the name of the property used for sorting.

Declaration

cs-api-definition
public string PropertyName { get; set; }

Property Value

string

A string representing the property name.

Methods

GetDescriptorCollection(RadListView)

Gets the descriptor collection from the specified ListView.

Declaration

cs-api-definition
protected override IList GetDescriptorCollection(RadListView listView)

Parameters

listView

RadListView

The RadListView to get descriptors from.

Returns

IList

An IList containing the sort descriptors.

Overrides DataDescriptorBase.GetDescriptorCollection(RadListView)

OnPropertyChanged(string)

Called when a property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

The name of the property that changed.

Overrides OrderedDescriptorBase.OnPropertyChanged(string)