New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public class RadItemsControlHandler : RadViewHandler<IRadItemsControl, RecyclerView>

Inheritance: objectRadViewHandler<IRadItemsControl, RecyclerView>RadItemsControlHandler

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

Constructors

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

C#
public RadItemsControlHandler()

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

C#
public RadItemsControlHandler(PropertyMapper mapper)
Parameters:mapperPropertyMapper

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

Fields

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.

C#
public static readonly PropertyMapper<IRadItemsControl, RadItemsControlHandler> ItemsControlMapper

Methods

C#
public void BeginUpdates()
C#
protected override void ConnectHandler(RecyclerView nativeView)
Parameters:nativeViewRecyclerView
C#
protected override void DisconnectHandler(RecyclerView nativeView)
Parameters:nativeViewRecyclerView
C#
public void EndUpdates()
C#
public void ItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

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

C#
public static void MapItemsSource(RadItemsControlHandler handler, IRadItemsControl virtualElement)
Parameters:handlerRadItemsControlHandler

The RadItemsControlHandler instance.

virtualElementIRadItemsControl

The IRadItemsControl containing the items source information.

C#
public void OnViewMeasureInvalidated(IView view)
Parameters:viewIView
C#
public void ReloadIndex(int index)
Parameters:indexint
C#
public void ReloadItems()
C#
public void ScrollTo(int index, bool scrollToTop, bool animated)
Parameters:indexintscrollToTopboolanimatedbool