Class
RadButton

A Button control.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadButton : Button, ICommandSource

Inheritance: objectRadButton

Derived Classes: GroupHeaderButtonRadDropDownButtonRadRibbonButton

Implements: ICommandSource

Constructors

RadButton()

Initializes a new instance of the RadButton class.

Declaration

cs-api-definition
public RadButton()

Fields

CommandParameterProperty

Identifies the CommandParameter property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandParameterProperty

Field Value

DependencyProperty

CommandProperty

Identifies the Command property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

CommandTargetProperty

Identifies the CommandTarget property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandTargetProperty

Field Value

DependencyProperty

Properties

Command

Gets the command that will be executed when the command source is invoked. This is a dependency property.

Declaration

cs-api-definition
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Property Value

ICommand

Implements ICommandSource.Command

CommandParameter

Represents a user defined data value that can be passed to the command when it is executed. This is a dependency property.

Declaration

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

Property Value

object

Implements ICommandSource.CommandParameter

CommandTarget

The object that the command is being executed on. This is a dependency property.

Declaration

cs-api-definition
public UIElement CommandTarget { get; set; }

Property Value

UIElement

Implements ICommandSource.CommandTarget

Methods

ExecuteCommand()

Declaration

cs-api-definition
protected void ExecuteCommand()

OnCreateAutomationPeer()

Creates a RadButtonAutomationPeer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer