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

Base class for clickable views.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public abstract class RadButtonBase : TemplatedView

Inheritance: objectRadButtonBase

Derived Classes: RadSmartPasteButtonRadTemplatedButtonRadToggleButton

Constructors

Initializes a new instance of the RadButtonBase class.

C#
public RadButtonBase()

Fields

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

BackgroundProperty

BindableProperty

Identifies the Background property.

C#
public static readonly BindableProperty BackgroundProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderColorProperty

BindableProperty

Identifies the BorderColor property.

C#
public static readonly BindableProperty BorderColorProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

CommandParameterProperty

BindableProperty

Identifies the CommandParameter property.

C#
public static readonly BindableProperty CommandParameterProperty

CommandProperty

BindableProperty

Identifies the Command property.

C#
public static readonly BindableProperty CommandProperty

ControlTemplateProperty

BindableProperty

Identifies the ControlTemplate property.

C#
public static readonly BindableProperty ControlTemplateProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

Identifies the IsKeyboardFocused property.

C#
public static readonly BindableProperty IsKeyboardFocusedProperty

IsPressedProperty

BindableProperty

Identifies the IsPressed property.

C#
public static readonly BindableProperty IsPressedProperty

PaddingProperty

BindableProperty

Identifies the Padding property.

C#
public static readonly BindableProperty PaddingProperty

StyleProperty

BindableProperty

Identifies the Style property.

C#
public static readonly BindableProperty StyleProperty

Properties

Gets or sets the background brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Gets or sets the background color of the control.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border brush of the control.

C#
public Brush BorderBrush { get; set; }

Gets or sets the border color of the control.

C#
public Color BorderColor { get; set; }

Gets or sets the border thickness of the control.

C#
public Thickness BorderThickness { get; set; }

Gets or sets the command to execute when the button is clicked.

C#
public ICommand Command { get; set; }

Gets or sets the parameter of the command, which is executed when the button is clicked.

C#
public object CommandParameter { get; set; }

ControlTemplate

ControlTemplate

Gets or sets the ControlTemplate of the control.

C#
public ControlTemplate ControlTemplate { get; set; }

CornerRadius

CornerRadius

Gets or sets the corner radius of the control.

C#
public CornerRadius CornerRadius { get; set; }
C#
protected override bool IsEnabledCore { get; }

Gets whether the button is currently focused through keyboard. This property is supported only on WinUI.

C#
public bool IsKeyboardFocused { get; }

Gets whether the button is currently pressed.

C#
public bool IsPressed { get; }

Padding

Thickness

Gets or sets the padding of the control.

C#
public Thickness Padding { get; set; }

Style

Style

Gets or sets the Style of the control.

C#
public Style Style { get; set; }

Methods

C#
protected override void ChangeVisualState()
C#
protected override void OnApplyTemplate()
C#
protected override void OnHandlerChanged()
C#
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
Parameters:argsHandlerChangingEventArgs
C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Events

Occurs when the button is clicked.

C#
public event EventHandler Clicked

Occurs when the button is pressed.

C#
public event EventHandler Pressed

Occurs when the button is released.

C#
public event EventHandler Released