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:
public abstract class RadViewHandler<IVirtualElement, TNativeView> : ViewHandler<IVirtualElement, TNativeView> where IVirtualElement : class, IView where TNativeView : View
Inheritance: objectRadViewHandler<IVirtualElement, TNativeView>
Derived Classes:
Constructors
Initializes a new instance of the RadViewHandler<IVirtualElement, TNativeView> class with the specified property mapper.
protected RadViewHandler(PropertyMapper mapper)
The PropertyMapper that defines how virtual view properties are mapped to native view properties.
Methods
Validates that the handler and virtual element parameters are not null. This method is used internally to ensure proper parameter validation across handler methods.
public static void CheckParameters(IViewHandler handler, IView virtualElement)
The IViewHandler to validate.
virtualElementIViewThe IView to validate.
Exceptions:Thrown when either handler or virtualElement is null.
CreatePlatformView()
TNativeView
Creates the platform-specific view for this handler. This method calls CreateNativeViewOverride() and ensures memory tracking for the created view.
protected override TNativeView CreatePlatformView()
TNativeView
The platform-specific native view instance.