ClassRadItemsControlHandler
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:
public class RadItemsControlHandler : RadViewHandler<IRadItemsControl, RecyclerView>
Inheritance: objectRadViewHandler<IRadItemsControl, RecyclerView>RadItemsControlHandler
Inherited Members
Constructors
RadItemsControlHandler()
Initializes a new instance of the RadItemsControlHandler class with the default property mapper.
Declaration
public RadItemsControlHandler()
RadItemsControlHandler(PropertyMapper)
Initializes a new instance of the RadItemsControlHandler class with the specified property mapper.
Declaration
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
public static readonly PropertyMapper<IRadItemsControl, RadItemsControlHandler> ItemsControlMapper
Field Value
PropertyMapper<IRadItemsControl, RadItemsControlHandler>
Methods
BeginUpdates()
Declaration
public void BeginUpdates()
ConnectHandler(RecyclerView)
Declaration
protected override void ConnectHandler(RecyclerView nativeView)
Parameters
nativeView
RecyclerView
DisconnectHandler(RecyclerView)
Declaration
protected override void DisconnectHandler(RecyclerView nativeView)
Parameters
nativeView
RecyclerView
EndUpdates()
Declaration
public void EndUpdates()
ItemsChanged(NotifyCollectionChangedEventArgs)
Declaration
public void ItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
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
public static void MapItemsSource(RadItemsControlHandler handler, IRadItemsControl virtualElement)
Parameters
handler
The RadItemsControlHandler instance.
virtualElement
The IRadItemsControl containing the items source information.
OnViewMeasureInvalidated(IView)
Declaration
public void OnViewMeasureInvalidated(IView view)
Parameters
view
IView
ReloadItems()
Declaration
public void ReloadItems()