New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class EventBinding : Freezable, ICommandSource

Inheritance: objectEventBinding

Implements: ICommandSource

Constructors

C#
public EventBinding()

Fields

CommandParameterProperty

DependencyProperty

Identifies the CommandParameter dependency property.

C#
public static readonly DependencyProperty CommandParameterProperty

CommandProperty

DependencyProperty

Identifies the Command dependency property.

C#
public static readonly DependencyProperty CommandProperty

CommandTargetProperty

DependencyProperty

Identifies the CommandTarget dependency property.

C#
public static readonly DependencyProperty CommandTargetProperty

EventNameProperty

DependencyProperty

Identifies the EventName dependency property.

C#
public static readonly DependencyProperty EventNameProperty

Identifies the PassEventArgsToCommand property.

C#
public static readonly DependencyProperty PassEventArgsToCommandProperty

Identifies the RaiseOnHandledEvents dependency property.

C#
public static readonly DependencyProperty RaiseOnHandledEventsProperty

Properties

Gets or sets the ICommand associated with this input binding.

C#
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Gets or sets the command-specific data for a particular command.

C#
public object CommandParameter { get; set; }

CommandTarget

IInputElement

Gets or sets the target element of the command.

C#
public IInputElement CommandTarget { get; set; }

Gets or sets the name of the event that will open the context menu.

C#
public string EventName { get; set; }
Property Value:

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.

C#
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.

C#
public bool RaiseOnHandledEvents { get; set; }

Methods

Creates an instance of an EventBinding.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

A new instance of an EventBinding.