ClassRadEventToCommandBehavior
A behavior that converts events into command executions.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadEventToCommandBehavior : BehaviorBase
Inheritance: objectBehaviorBaseRadEventToCommandBehavior
Inherited Members
Constructors
RadEventToCommandBehavior()
Initializes a new instance of the RadEventToCommandBehavior class.
Declaration
public RadEventToCommandBehavior()
Fields
CommandParameterProperty
Identifies the CommandParameter bindable property.
Declaration
public static readonly BindableProperty CommandParameterProperty
Field Value
BindableProperty
CommandProperty
Identifies the Command bindable property.
Declaration
public static readonly BindableProperty CommandProperty
Field Value
BindableProperty
EventArgsConverterProperty
Identifies the EventArgsConverter bindable property.
Declaration
public static readonly BindableProperty EventArgsConverterProperty
Field Value
BindableProperty
EventNameProperty
Identifies the EventName bindable property.
Declaration
public static readonly BindableProperty EventNameProperty
Field Value
BindableProperty
Properties
Command
Gets or sets the command to execute when the event is raised.
CommandParameter
Gets or sets the parameter to pass to the command.
Declaration
public object CommandParameter { get; set; }
Property Value
The command parameter.
EventArgsConverter
Gets or sets the converter to use for converting event arguments.
Declaration
public IValueConverter EventArgsConverter { get; set; }
Property Value
IValueConverter
The event arguments converter.
Methods
OnAttachedTo(BindableObject)
Called when the behavior is attached to a bindable object.
Declaration
protected override void OnAttachedTo(BindableObject bindable)
Parameters
bindable
BindableObject
The bindable object to attach to.
Overrides
OnDetachingFrom(BindableObject)
Called when the behavior is being detached from a bindable object.
Declaration
protected override void OnDetachingFrom(BindableObject bindable)
Parameters
bindable
BindableObject
The bindable object to detach from.
Overrides