Class
GroupHeaderContext

Represents the context that is passed to a ListViewGroupHeaderCell control that represents a group within a RadListView instance.

Definition

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

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class GroupHeaderContext : INotifyPropertyChanged

Inheritance: objectGroupHeaderContext

Implements: INotifyPropertyChanged

Properties

IsExpanded

Gets or sets a value indicating whether the group is currently expanded (has its child items visible).

Declaration

cs-api-definition
public bool IsExpanded { get; set; }

Property Value

bool

true if the group is expanded; otherwise, false.

Items

Gets the child items of the group.

Declaration

cs-api-definition
public IReadOnlyList<object> Items { get; }

Property Value

IReadOnlyList<object>

A read-only list of child items in the group.

Key

Gets the specific for the group key.

Declaration

cs-api-definition
public object Key { get; }

Property Value

object

The key object for the group.

Level

Gets the zero-based level (or the depth) of the group.

Declaration

cs-api-definition
public int Level { get; }

Property Value

int

The level of the group in the hierarchy.

Methods

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string representation of the group key, or an empty string if the key is null.

Overrides object.ToString()

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

Operators

implicit operator string(GroupHeaderContext)

Defines an implicit conversion from GroupHeaderContext to string.

Declaration

cs-api-definition
public static implicit operator string(GroupHeaderContext context)

Parameters

context

GroupHeaderContext

The GroupHeaderContext to convert.

Returns

string

The string representation of the context.