Class
RadButtonBase

Base class for clickable views.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class RadButtonBase : TemplatedView

Inheritance: objectRadButtonBase

Derived Classes: RadTemplatedButtonRadToggleButton

Constructors

RadButtonBase()

Initializes a new instance of the RadButtonBase class.

Declaration

cs-api-definition
public RadButtonBase()

Fields

BackgroundColorProperty

Identifies the BackgroundColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundColorProperty

Field Value

BindableProperty

BackgroundProperty

Identifies the Background property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundProperty

Field Value

BindableProperty

BorderBrushProperty

Identifies the BorderBrush property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderBrushProperty

Field Value

BindableProperty

BorderColorProperty

Identifies the BorderColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderColorProperty

Field Value

BindableProperty

BorderThicknessProperty

Identifies the BorderThickness property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

CommandParameterProperty

Identifies the CommandParameter property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandParameterProperty

Field Value

BindableProperty

CommandProperty

Identifies the Command property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandProperty

Field Value

BindableProperty

ControlTemplateProperty

Identifies the ControlTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty ControlTemplateProperty

Field Value

BindableProperty

CornerRadiusProperty

Identifies the CornerRadius property.

Declaration

cs-api-definition
public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

IsPressedProperty

Identifies the IsPressed property.

Declaration

cs-api-definition
public static readonly BindableProperty IsPressedProperty

Field Value

BindableProperty

PaddingProperty

Identifies the Padding property.

Declaration

cs-api-definition
public static readonly BindableProperty PaddingProperty

Field Value

BindableProperty

StyleProperty

Identifies the Style property.

Declaration

cs-api-definition
public static readonly BindableProperty StyleProperty

Field Value

BindableProperty

Properties

Background

Gets or sets the background brush of the control.

Declaration

cs-api-definition
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Property Value

Brush

BackgroundColor

Gets or sets the background color of the control.

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

BorderBrush

Gets or sets the border brush of the control.

Declaration

cs-api-definition
public Brush BorderBrush { get; set; }

Property Value

Brush

BorderColor

Gets or sets the border color of the control.

Declaration

cs-api-definition
public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

Gets or sets the border thickness of the control.

Declaration

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

Property Value

Thickness

Command

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

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

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

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

ControlTemplate

Gets or sets the ControlTemplate of the control.

Declaration

cs-api-definition
public ControlTemplate ControlTemplate { get; set; }

Property Value

ControlTemplate

CornerRadius

Gets or sets the corner radius of the control.

Declaration

cs-api-definition
public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

IsEnabledCore

Declaration

cs-api-definition
protected override bool IsEnabledCore { get; }

Property Value

bool

IsPressed

Gets whether the button is currently pressed.

Declaration

cs-api-definition
public bool IsPressed { get; }

Property Value

bool

Padding

Gets or sets the padding of the control.

Declaration

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

Property Value

Thickness

Style

Gets or sets the Style of the control.

Declaration

cs-api-definition
public Style Style { get; set; }

Property Value

Style

Methods

ChangeVisualState()

Declaration

cs-api-definition
protected override void ChangeVisualState()

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnHandlerChanged()

Declaration

cs-api-definition
protected override void OnHandlerChanged()

OnHandlerChanging(HandlerChangingEventArgs)

Declaration

cs-api-definition
protected override void OnHandlerChanging(HandlerChangingEventArgs args)

Parameters

args

HandlerChangingEventArgs

OnPropertyChanged(string)

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

Events

Clicked

Occurs when the button is clicked.

Declaration

cs-api-definition
public event EventHandler Clicked

Event Value

EventHandler

Pressed

Occurs when the button is pressed.

Declaration

cs-api-definition
public event EventHandler Pressed

Event Value

EventHandler

Released

Occurs when the button is released.

Declaration

cs-api-definition
public event EventHandler Released

Event Value

EventHandler