EventBinding
Represents a binding between an event and a command. The command is potentially a RoutedCommand.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class EventBinding : Freezable, ICommandSource
Inheritance: objectEventBinding
Implements:
Constructors
public EventBinding()
Fields
CommandParameterProperty
DependencyProperty
Identifies the CommandParameter dependency property.
public static readonly DependencyProperty CommandParameterProperty
CommandProperty
DependencyProperty
Identifies the Command dependency property.
public static readonly DependencyProperty CommandProperty
CommandTargetProperty
DependencyProperty
Identifies the CommandTarget dependency property.
public static readonly DependencyProperty CommandTargetProperty
EventNameProperty
DependencyProperty
Identifies the EventName dependency property.
public static readonly DependencyProperty EventNameProperty
PassEventArgsToCommandProperty
DependencyProperty
Identifies the PassEventArgsToCommand property.
public static readonly DependencyProperty PassEventArgsToCommandProperty
RaiseOnHandledEventsProperty
DependencyProperty
Identifies the RaiseOnHandledEvents dependency property.
public static readonly DependencyProperty RaiseOnHandledEventsProperty
Properties
Gets or sets the ICommand associated with this input binding.
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }
Gets or sets the command-specific data for a particular command.
public object CommandParameter { get; set; }
CommandTarget
IInputElement
Gets or sets the target element of the command.
public IInputElement CommandTarget { get; set; }
Gets or sets the name of the event that will open the context menu.
public string EventName { get; set; }
The name of the event.
Gets or sets the value indicating if the event arguments will be passed to the command. If you specify CommandParameter this value is ignored.
public bool PassEventArgsToCommand { get; set; }
Gets or sets whether EventBinding will raise the Command on handled routed events. The default value is false. This is a dependency property.
public bool RaiseOnHandledEvents { get; set; }
Methods
CreateInstanceCore()
Freezable
Creates an instance of an EventBinding.
protected override Freezable CreateInstanceCore()
Freezable
A new instance of an EventBinding.