Class
RadButton

Represents a button control with enhanced styling and customization options.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class RadButton : Button, IRadButton, ITextButton, IView, IElement, ITransform, IButton, IPadding, IButtonStroke, IText, ITextStyle, IImageButton, IImage, IImageSourcePart

Inheritance: objectRadButton

Derived Classes: NavigationViewButtonTreeViewItemButton

Implements: IButtonIButtonStrokeIElementIImageIImageButtonIImageSourcePartIPaddingIRadButtonITextITextButtonITextStyleITransformIView

Constructors

RadButton()

Initializes a new instance of the RadButton class.

Declaration

cs-api-definition
public RadButton()

Fields

BackgroundImageProperty

Identifies the BackgroundImage property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundImageProperty

Field Value

BindableProperty

BorderThicknessProperty

Identifies the BorderThickness property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

HorizontalContentAlignmentProperty

Identifies the HorizontalContentAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalContentAlignmentProperty

Field Value

BindableProperty

VerticalContentAlignmentProperty

Identifies the VerticalContentAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalContentAlignmentProperty

Field Value

BindableProperty

Properties

BackgroundImage

Gets or sets the ImageSource that will be set as background.

Declaration

cs-api-definition
public ImageSource BackgroundImage { get; set; }

Property Value

ImageSource

BorderThickness

Gets or sets the width of all borders separately. The property is with higher precedence and will override the values of this property.

Declaration

cs-api-definition
public Thickness BorderThickness { get; set; }

Property Value

Thickness

Implements IRadButton.BorderThickness

HorizontalContentAlignment

Gets or sets the horizontal alignment of the text and image.

Declaration

cs-api-definition
public TextAlignment HorizontalContentAlignment { get; set; }

Property Value

TextAlignment

Implements IRadButton.HorizontalContentAlignment

VerticalContentAlignment

Gets or sets the vertical alignment of the text and image.

Declaration

cs-api-definition
public TextAlignment VerticalContentAlignment { get; set; }

Property Value

TextAlignment

Implements IRadButton.VerticalContentAlignment

Methods

ChangeVisualState()

Declaration

cs-api-definition
protected override void ChangeVisualState()