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

Represents a button control with enhanced styling and customization options.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
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

Initializes a new instance of the RadButton class.

C#
public RadButton()

Fields

BackgroundImageProperty

BindableProperty

Identifies the BackgroundImage property.

C#
public static readonly BindableProperty BackgroundImageProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

Identifies the HorizontalContentAlignment property.

C#
public static readonly BindableProperty HorizontalContentAlignmentProperty

Identifies the VerticalContentAlignment property.

C#
public static readonly BindableProperty VerticalContentAlignmentProperty

Properties

BackgroundImage

ImageSource

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

C#
public ImageSource BackgroundImage { get; set; }

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

C#
public Thickness BorderThickness { get; set; }

Implements: IRadButton.BorderThickness

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

C#
public TextAlignment HorizontalContentAlignment { get; set; }

Implements: IRadButton.HorizontalContentAlignment

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

C#
public TextAlignment VerticalContentAlignment { get; set; }

Implements: IRadButton.VerticalContentAlignment

Methods

C#
protected override void ChangeVisualState()