Class
RadViewHandler<IVirtualElement, TNativeView>

Provides a base class for Telerik MAUI view handlers that manage the mapping between virtual views and native platform views. This abstract class extends to provide common functionality for Telerik controls.

Definition

Namespace:Telerik.Maui.Handlers

Assembly:Telerik.Maui.Core.dll

Type Parameters:

IVirtualElement

The type of the virtual view that implements IView.

TNativeView

The type of the native platform view.

Syntax:

cs-api-definition
public abstract class RadViewHandler<IVirtualElement, TNativeView> : ViewHandler<IVirtualElement, TNativeView> where IVirtualElement : class, IView where TNativeView : View

Inheritance: objectRadViewHandler<IVirtualElement, TNativeView>

Derived Classes: AppointmentViewHandlerRadItemsControlHandlerRadScrollViewHandlerSchedulerBoxViewHandler

Constructors

RadViewHandler(PropertyMapper)

Initializes a new instance of the RadViewHandler<IVirtualElement, TNativeView> class with the specified property mapper.

Declaration

cs-api-definition
protected RadViewHandler(PropertyMapper mapper)

Parameters

mapper

PropertyMapper

The PropertyMapper that defines how virtual view properties are mapped to native view properties.

Methods

CheckParameters(IViewHandler, IView)

Validates that the handler and virtual element parameters are not null. This method is used internally to ensure proper parameter validation across handler methods.

Declaration

cs-api-definition
public static void CheckParameters(IViewHandler handler, IView virtualElement)

Parameters

handler

IViewHandler

The IViewHandler to validate.

virtualElement

IView

The IView to validate.

Exceptions

ArgumentNullException

Thrown when either handler or virtualElement is null.

CreatePlatformView()

Creates the platform-specific view for this handler. This method calls CreateNativeViewOverride() and ensures memory tracking for the created view.

Declaration

cs-api-definition
protected override TNativeView CreatePlatformView()

Returns

TNativeView

The platform-specific native view instance.