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

Provides a handler for IRadButton controls that extends the base functionality.

Definition

Namespace:Telerik.Maui.Handlers

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public class RadButtonHandler : ButtonHandler, IRadButtonHandler, IButtonHandler, IViewHandler, IElementHandler

Inheritance: objectRadButtonHandler

Implements: IButtonHandlerIElementHandlerIRadButtonHandlerIViewHandler

Constructors

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

C#
public RadButtonHandler()

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

C#
public RadButtonHandler(IPropertyMapper mapper)
Parameters:mapperIPropertyMapper

The property mapper to use, or null to use the default mapper.

Fields

Gets the property mapper that defines the mapping between IRadButton properties and handler methods.

C#
public static readonly IPropertyMapper<IRadButton, IRadButtonHandler> RadButtonMapper

Properties

C#
public Drawable BackgroundImage { get; }

Implements: IRadButtonHandler.BackgroundImage

BackgroundImageSourceLoader

ImageSourcePartLoader

Gets the background image source loader for the button.

C#
public ImageSourcePartLoader BackgroundImageSourceLoader { get; }

Implements: IRadButtonHandler.BackgroundImageSourceLoader

Gets the virtual view as an IRadButton.

C#
public IRadButton VirtualView { get; }

Methods

C#
protected override void ConnectHandler(MaterialButton platformView)
Parameters:platformViewMaterialButton

CreatePlatformView()

MaterialButton

C#
protected override MaterialButton CreatePlatformView()
Returns:

MaterialButton

C#
protected override void DisconnectHandler(MaterialButton platformView)
Parameters:platformViewMaterialButton
C#
public static void MapBackground(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapBackgroundImage(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapCornerRadius(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapHorizontalContentAlignment(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapPadding(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapStrokeColor(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapStrokeThickness(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapTextColor(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton
C#
public static void MapVerticalContentAlignment(IRadButtonHandler handler, IRadButton virtualView)
Parameters:handlerIRadButtonHandlervirtualViewIRadButton