RadButtonBase
Base class for clickable views.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class RadButtonBase : TemplatedView
Inheritance: objectRadButtonBase
Derived Classes:
Constructors
Initializes a new instance of the RadButtonBase class.
public RadButtonBase()
Fields
BackgroundColorProperty
BindableProperty
Identifies the BackgroundColor property.
public static readonly BindableProperty BackgroundColorProperty
BackgroundProperty
BindableProperty
Identifies the Background property.
public static readonly BindableProperty BackgroundProperty
BorderBrushProperty
BindableProperty
Identifies the BorderBrush property.
public static readonly BindableProperty BorderBrushProperty
BorderColorProperty
BindableProperty
Identifies the BorderColor property.
public static readonly BindableProperty BorderColorProperty
BorderThicknessProperty
BindableProperty
Identifies the BorderThickness property.
public static readonly BindableProperty BorderThicknessProperty
CommandParameterProperty
BindableProperty
Identifies the CommandParameter property.
public static readonly BindableProperty CommandParameterProperty
CommandProperty
BindableProperty
Identifies the Command property.
public static readonly BindableProperty CommandProperty
ControlTemplateProperty
BindableProperty
Identifies the ControlTemplate property.
public static readonly BindableProperty ControlTemplateProperty
CornerRadiusProperty
BindableProperty
Identifies the CornerRadius property.
public static readonly BindableProperty CornerRadiusProperty
IsKeyboardFocusedProperty
BindableProperty
Identifies the IsKeyboardFocused property.
public static readonly BindableProperty IsKeyboardFocusedProperty
IsPressedProperty
BindableProperty
Identifies the IsPressed property.
public static readonly BindableProperty IsPressedProperty
PaddingProperty
BindableProperty
Identifies the Padding property.
public static readonly BindableProperty PaddingProperty
StyleProperty
BindableProperty
Identifies the Style property.
public static readonly BindableProperty StyleProperty
Properties
Background
Brush
Gets or sets the background brush of the control.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }
BackgroundColor
Color
Gets or sets the background color of the control.
public Color BackgroundColor { get; set; }
BorderBrush
Brush
Gets or sets the border brush of the control.
public Brush BorderBrush { get; set; }
BorderColor
Color
Gets or sets the border color of the control.
public Color BorderColor { get; set; }
BorderThickness
Thickness
Gets or sets the border thickness of the control.
public Thickness BorderThickness { get; set; }
Gets or sets the command to execute when the button is clicked.
public ICommand Command { get; set; }
Gets or sets the parameter of the command, which is executed when the button is clicked.
public object CommandParameter { get; set; }
ControlTemplate
ControlTemplate
Gets or sets the ControlTemplate of the control.
public ControlTemplate ControlTemplate { get; set; }
CornerRadius
CornerRadius
Gets or sets the corner radius of the control.
public CornerRadius CornerRadius { get; set; }
protected override bool IsEnabledCore { get; }
Gets whether the button is currently focused through keyboard. This property is supported only on WinUI.
public bool IsKeyboardFocused { get; }
Padding
Thickness
Gets or sets the padding of the control.
public Thickness Padding { get; set; }
Methods
protected override void ChangeVisualState()
protected override void OnApplyTemplate()
protected override void OnHandlerChanged()
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
protected override void OnPropertyChanged(string propertyName = null)
Events
Occurs when the button is clicked.
public event EventHandler Clicked
Occurs when the button is pressed.
public event EventHandler Pressed
Occurs when the button is released.
public event EventHandler Released