Class
RadEventToCommandBehavior

A behavior that converts events into command executions.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class RadEventToCommandBehavior : BehaviorBase

Inheritance: objectBehaviorBaseRadEventToCommandBehavior

Inherited Members BehaviorBase.AttachedBindable

Constructors

RadEventToCommandBehavior()

Initializes a new instance of the RadEventToCommandBehavior class.

Declaration

cs-api-definition
public RadEventToCommandBehavior()

Fields

CommandParameterProperty

Identifies the CommandParameter bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandParameterProperty

Field Value

BindableProperty

CommandProperty

Identifies the Command bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandProperty

Field Value

BindableProperty

EventArgsConverterProperty

Identifies the EventArgsConverter bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty EventArgsConverterProperty

Field Value

BindableProperty

EventNameProperty

Identifies the EventName bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty EventNameProperty

Field Value

BindableProperty

Properties

Command

Gets or sets the command to execute when the event is raised.

Declaration

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

Property Value

ICommand

CommandParameter

Gets or sets the parameter to pass to the command.

Declaration

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

Property Value

object

The command parameter.

EventArgsConverter

Gets or sets the converter to use for converting event arguments.

Declaration

cs-api-definition
public IValueConverter EventArgsConverter { get; set; }

Property Value

IValueConverter

The event arguments converter.

EventName

Gets or sets the name of the event to listen for.

Declaration

cs-api-definition
public string EventName { get; set; }

Property Value

string

The event name.

Methods

OnAttachedTo(BindableObject)

Called when the behavior is attached to a bindable object.

Declaration

cs-api-definition
protected override void OnAttachedTo(BindableObject bindable)

Parameters

bindable

BindableObject

The bindable object to attach to.

Overrides BehaviorBase.OnAttachedTo(BindableObject)

OnDetachingFrom(BindableObject)

Called when the behavior is being detached from a bindable object.

Declaration

cs-api-definition
protected override void OnDetachingFrom(BindableObject bindable)

Parameters

bindable

BindableObject

The bindable object to detach from.

Overrides BehaviorBase.OnDetachingFrom(BindableObject)