Class
OrderedDescriptorBase

Provides a base class for descriptors that support ordering operations, implementing both IComparer and IComparer<T> interfaces.

Definition

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

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public abstract class OrderedDescriptorBase : DataDescriptorBase, IComparer, IComparer<object>

Inheritance: objectDataDescriptorBaseOrderedDescriptorBase

Derived Classes: GroupDescriptorBaseSortDescriptorBase

Implements: IComparerIComparer<object>

Inherited Members DataDescriptorBase.GetDescriptorCollection(RadListView)

Constructors

OrderedDescriptorBase()

Declaration

cs-api-definition
protected OrderedDescriptorBase()

Fields

SortOrderProperty

Identifies the SortOrder bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SortOrderProperty

Field Value

BindableProperty

Properties

SortOrder

Gets or sets the sort order for the descriptor.

Declaration

cs-api-definition
public SortOrder SortOrder { get; set; }

Property Value

SortOrder

The sort order as SortOrder.

Methods

Compare(object, object)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Declaration

cs-api-definition
public int Compare(object x, object y)

Parameters

x

object

The first object to compare.

y

object

The second object to compare.

Returns

int

A signed integer that indicates the relative values of x and y.

Implements IComparer.Compare(object, object)IComparer<object>.Compare(object, object)

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 DataDescriptorBase.OnPropertyChanged(string)