Class
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:

cs-api-definition
public class EventBinding : Freezable, ICommandSource

Inheritance: objectEventBinding

Implements: ICommandSource

Constructors

EventBinding()

Declaration

cs-api-definition
public EventBinding()

Fields

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandParameterProperty

Field Value

DependencyProperty

CommandProperty

Identifies the Command dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

CommandTargetProperty

Identifies the CommandTarget dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandTargetProperty

Field Value

DependencyProperty

EventNameProperty

Identifies the EventName dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EventNameProperty

Field Value

DependencyProperty

PassEventArgsToCommandProperty

Identifies the PassEventArgsToCommand property.

Declaration

cs-api-definition
public static readonly DependencyProperty PassEventArgsToCommandProperty

Field Value

DependencyProperty

RaiseOnHandledEventsProperty

Identifies the RaiseOnHandledEvents dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RaiseOnHandledEventsProperty

Field Value

DependencyProperty

Properties

Command

Gets or sets the ICommand associated with this input binding.

Declaration

cs-api-definition
[TypeConverter(typeof(CommandConverter))]
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

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

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

CommandTarget

Gets or sets the target element of the command.

Declaration

cs-api-definition
public IInputElement CommandTarget { get; set; }

Property Value

IInputElement

EventName

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

Declaration

cs-api-definition
public string EventName { get; set; }

Property Value

string

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.

Declaration

cs-api-definition
public bool PassEventArgsToCommand { get; set; }

Property Value

bool

RaiseOnHandledEvents

Gets or sets whether EventBinding will raise the Command on handled routed events. The default value is false. This is a dependency property.

Declaration

cs-api-definition
public bool RaiseOnHandledEvents { get; set; }

Property Value

bool

Methods

CreateInstanceCore()

Creates an instance of an EventBinding.

Declaration

cs-api-definition
protected override Freezable CreateInstanceCore()

Returns

Freezable

A new instance of an EventBinding.