skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • Resources Hub
    • .NET MAUI Tutorials and Learning
    • First Steps
    • Submit a Ticket
    • FAQs

    Docs & Resources

    • Docs
    • Demos
    • Migrate to .NET MAUI
    • Forums
    • Videos
    • Blogs

    Productivity and Design Tools

    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadButtonBase

Base class for clickable views.

Inheritance
System.Object
RadButtonBase
RadTemplatedButton
RadToggleButton
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll

Syntax

public abstract class RadButtonBase : TemplatedView

Constructors

RadButtonBase()

Initializes a new instance of the RadButtonBase class.

Declaration
public RadButtonBase()

Fields

BackgroundColorProperty

Identifies the BackgroundColor property.

Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

BackgroundProperty

Identifies the Background property.

Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

BorderBrushProperty

Identifies the BorderBrush property.

Declaration
public static readonly BindableProperty BorderBrushProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

BorderColorProperty

Identifies the BorderColor property.

Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

BorderThicknessProperty

Identifies the BorderThickness property.

Declaration
public static readonly BindableProperty BorderThicknessProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

CommandParameterProperty

Identifies the CommandParameter property.

Declaration
public static readonly BindableProperty CommandParameterProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

CommandProperty

Identifies the Command property.

Declaration
public static readonly BindableProperty CommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

ControlTemplateProperty

Identifies the ControlTemplate property.

Declaration
public static readonly BindableProperty ControlTemplateProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

CornerRadiusProperty

Identifies the CornerRadius property.

Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

IsPressedProperty

Identifies the IsPressed property.

Declaration
public static readonly BindableProperty IsPressedProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

PaddingProperty

Identifies the Padding property.

Declaration
public static readonly BindableProperty PaddingProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

StyleProperty

Identifies the Style property.

Declaration
public static readonly BindableProperty StyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

Properties

Background

Gets or sets the background brush of the control.

Declaration
public Brush Background { get; set; }
Property Value
Microsoft.Maui.Controls.Brush

BackgroundColor

Gets or sets the background color of the control.

Declaration
public Color BackgroundColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

BorderBrush

Gets or sets the border brush of the control.

Declaration
public Brush BorderBrush { get; set; }
Property Value
Microsoft.Maui.Controls.Brush

BorderColor

Gets or sets the border color of the control.

Declaration
public Color BorderColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

BorderThickness

Gets or sets the border thickness of the control.

Declaration
public Thickness BorderThickness { get; set; }
Property Value
Microsoft.Maui.Thickness

Command

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

Declaration
public ICommand Command { get; set; }
Property Value
System.Windows.Input.ICommand

CommandParameter

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

Declaration
public object CommandParameter { get; set; }
Property Value
System.Object

ControlTemplate

Gets or sets the ControlTemplate of the control.

Declaration
public ControlTemplate ControlTemplate { get; set; }
Property Value
Microsoft.Maui.Controls.ControlTemplate

CornerRadius

Gets or sets the corner radius of the control.

Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Microsoft.Maui.CornerRadius

IsEnabledCore

Declaration
protected override bool IsEnabledCore { get; }
Property Value
System.Boolean

IsPressed

Gets whether the button is currently pressed.

Declaration
public bool IsPressed { get; }
Property Value
System.Boolean

Padding

Gets or sets the padding of the control.

Declaration
public Thickness Padding { get; set; }
Property Value
Microsoft.Maui.Thickness

Style

Gets or sets the Style of the control.

Declaration
public Style Style { get; set; }
Property Value
Microsoft.Maui.Controls.Style

Methods

ChangeVisualState()

Declaration
protected override void ChangeVisualState()

OnApplyTemplate()

Declaration
protected override void OnApplyTemplate()

OnHandlerChanged()

Declaration
protected override void OnHandlerChanged()

OnHandlerChanging(HandlerChangingEventArgs)

Declaration
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
Parameters
Microsoft.Maui.Controls.HandlerChangingEventArgs args

OnPropertyChanged(String)

Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
System.String propertyName

Events

Clicked

Occurs when the button is clicked.

Declaration
public event EventHandler Clicked
Event Type
System.EventHandler

Pressed

Occurs when the button is pressed.

Declaration
public event EventHandler Pressed
Event Type
System.EventHandler

Released

Occurs when the button is released.

Declaration
public event EventHandler Released
Event Type
System.EventHandler

Extension Methods

AndroidTypeConversionExtensions.ToJavaObject(Object)
Sample Applications
  • Controls Samples App
  • Crypto Tracker App
Support Resources
  • .NET MAUI SDKBrowser App
Community
  • Forums
  • Blogs
  • Feedback Portal
  • YouTube Channel

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.