Class
RadItemsControlHandler

Provides a cross-platform handler for the IRadItemsControl control. This handler manages the mapping between the virtual IRadItemsControl and the native items control implementations across different platforms.

Definition

Namespace:Telerik.Maui.Handlers

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public class RadItemsControlHandler : RadViewHandler<IRadItemsControl, RecyclerView>

Inheritance: objectRadViewHandler<IRadItemsControl, RecyclerView>RadItemsControlHandler

Inherited Members RadViewHandler<IRadItemsControl, RecyclerView>.CheckParameters(IViewHandler, IView)RadViewHandler<IRadItemsControl, RecyclerView>.CreatePlatformView()

Constructors

RadItemsControlHandler()

Initializes a new instance of the RadItemsControlHandler class with the default property mapper.

Declaration

cs-api-definition
public RadItemsControlHandler()

RadItemsControlHandler(PropertyMapper)

Initializes a new instance of the RadItemsControlHandler class with the specified property mapper.

Declaration

cs-api-definition
public RadItemsControlHandler(PropertyMapper mapper)

Parameters

mapper

PropertyMapper

The PropertyMapper to use for property mapping, or null to use the default ItemsControlMapper.

Fields

ItemsControlMapper

Gets the property mapper that defines how IRadItemsControl properties are mapped to native view properties. This mapper includes mappings for items source and other control-specific properties.

Declaration

cs-api-definition
public static readonly PropertyMapper<IRadItemsControl, RadItemsControlHandler> ItemsControlMapper

Field Value

PropertyMapper<IRadItemsControl, RadItemsControlHandler>

Methods

BeginUpdates()

Declaration

cs-api-definition
public void BeginUpdates()

ConnectHandler(RecyclerView)

Declaration

cs-api-definition
protected override void ConnectHandler(RecyclerView nativeView)

Parameters

nativeView

RecyclerView

DisconnectHandler(RecyclerView)

Declaration

cs-api-definition
protected override void DisconnectHandler(RecyclerView nativeView)

Parameters

nativeView

RecyclerView

EndUpdates()

Declaration

cs-api-definition
public void EndUpdates()

ItemsChanged(NotifyCollectionChangedEventArgs)

Declaration

cs-api-definition
public void ItemsChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

MapItemsSource(RadItemsControlHandler, IRadItemsControl)

Maps the items source property from the virtual IRadItemsControl to the native view. This method handles platform-specific items source updates.

Declaration

cs-api-definition
public static void MapItemsSource(RadItemsControlHandler handler, IRadItemsControl virtualElement)

Parameters

handler

RadItemsControlHandler

The RadItemsControlHandler instance.

virtualElement

IRadItemsControl

The IRadItemsControl containing the items source information.

OnViewMeasureInvalidated(IView)

Declaration

cs-api-definition
public void OnViewMeasureInvalidated(IView view)

Parameters

view

IView

ReloadIndex(int)

Declaration

cs-api-definition
public void ReloadIndex(int index)

Parameters

index

int

ReloadItems()

Declaration

cs-api-definition
public void ReloadItems()

ScrollTo(int, bool, bool)

Declaration

cs-api-definition
public void ScrollTo(int index, bool scrollToTop, bool animated)

Parameters

index

int

scrollToTop

bool

animated

bool