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
Initializes a new instance of the RadEventToCommandBehavior class.
public RadEventToCommandBehavior()
Fields
CommandParameterProperty
BindableProperty
Identifies the CommandParameter bindable property.
public static readonly BindableProperty CommandParameterProperty
CommandProperty
BindableProperty
Identifies the Command bindable property.
public static readonly BindableProperty CommandProperty
EventArgsConverterProperty
BindableProperty
Identifies the EventArgsConverter bindable property.
public static readonly BindableProperty EventArgsConverterProperty
EventNameProperty
BindableProperty
Identifies the EventName bindable property.
public static readonly BindableProperty EventNameProperty
Properties
Gets or sets the command to execute when the event is raised.
public ICommand Command { get; set; }
Gets or sets the parameter to pass to the command.
public object CommandParameter { get; set; }
The command parameter.
EventArgsConverter
IValueConverter
Gets or sets the converter to use for converting event arguments.
public IValueConverter EventArgsConverter { get; set; }
The event arguments converter.
Methods
Called when the behavior is attached to a bindable object.
protected override void OnAttachedTo(BindableObject bindable)
The bindable object to attach to.
Overrides:
Called when the behavior is being detached from a bindable object.
protected override void OnDetachingFrom(BindableObject bindable)
The bindable object to detach from.
Overrides: