ClassEventBinding
Represents a binding between an event and a command.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class EventBinding : DependencyObject, ICommandSource
Inheritance: objectEventBinding
Implements:
Constructors
EventBinding()
Declaration
public EventBinding()
Fields
CommandParameterProperty
Identifies the CommandParameter dependency property.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
DependencyProperty
CommandProperty
Identifies the Command dependency property.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
DependencyProperty
CommandTargetProperty
Identifies the CommandTarget dependency property.
Declaration
public static readonly DependencyProperty CommandTargetProperty
Field Value
DependencyProperty
EventNameProperty
Identifies the EventName dependency property.
Declaration
public static readonly DependencyProperty EventNameProperty
Field Value
DependencyProperty
PassEventArgsToCommandProperty
Identifies the PassEventArgsToCommand property.
Declaration
public static readonly DependencyProperty PassEventArgsToCommandProperty
Field Value
DependencyProperty
RaiseOnHandledEventsProperty
Identifies the RaiseOnHandledEvents dependency property.
Declaration
public static readonly DependencyProperty RaiseOnHandledEventsProperty
Field Value
DependencyProperty
Properties
Command
Gets or sets the ICommand associated with this input binding.
Declaration
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }
Property Value
Implements
CommandParameter
Gets or sets the command-specific data for a particular command.
Declaration
public object CommandParameter { get; set; }
Property Value
Implements
CommandTarget
Gets or sets the target element of the command.
Declaration
public UIElement CommandTarget { get; set; }
Property Value
UIElement
Implements
EventName
Gets or sets the name of the event that will execute the command.
Declaration
public string EventName { get; set; }
Property Value
The name of the event.
PassEventArgsToCommand
Gets or sets the value indicating if the event arguments will be passed to the command. If you specify CommandParameter this value is ignored.
RaiseOnHandledEvents
Gets or sets whether EventBinding will raise the Command on handled routed events. The default value is false. This is a dependency property.