Class
RaisedRoutedEvent

Represents a raised routed event instance that captures the complete context of a routed event occurrence, including sender information, routing direction, and event identity for use in event behavior processing.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RaisedRoutedEvent

Inheritance: objectRaisedRoutedEvent

Constructors

RaisedRoutedEvent()

Initializes a new instance of the RaisedRoutedEvent class with default values.

Declaration

cs-api-definition
public RaisedRoutedEvent()

Remarks

This parameterless constructor is required for XML serialization and creates an instance with uninitialized properties that must be set separately before the instance can be used for event matching operations.

RaisedRoutedEvent(RoutedEvent, string, EventBehaviorSenderType, RoutingDirection)

Initializes a new instance of the RaisedRoutedEvent class with the specified event context information.

Declaration

cs-api-definition
public RaisedRoutedEvent(RoutedEvent routedEvent, string sender, EventBehaviorSenderType senderType, RoutingDirection direction)

Parameters

routedEvent

RoutedEvent

The RoutedEvent definition that identifies the type of event being raised.

sender

string

A string identifier for the event sender, interpreted according to the sender type.

senderType

EventBehaviorSenderType

The EventBehaviorSenderType that determines how the sender parameter should be interpreted.

direction

RoutingDirection

The RoutingDirection indicating whether this is a tunneling or bubbling event.

Remarks

This constructor creates a complete raised routed event context that can be used for precise event matching in the event behavior system. The parameters work together to create a comprehensive filter that can match events based on multiple criteria:

  • The routed event provides the event identity and type information
  • The sender and sender type specify which elements should trigger behaviors
  • The direction indicates whether to match tunneling or bubbling events

Properties

Direction

Gets or sets the routing direction - tunnel or bubble.

Declaration

cs-api-definition
public RoutingDirection Direction { get; set; }

Property Value

RoutingDirection

RoutedEvent

Gets or sets a value indicating the routed event.

Declaration

cs-api-definition
public RoutedEvent RoutedEvent { get; set; }

Property Value

RoutedEvent

Sender

Gets or sets the sender.

Declaration

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

Property Value

string

SenderType

Gets or sets the sender's type.

Declaration

cs-api-definition
public EventBehaviorSenderType SenderType { get; set; }

Property Value

EventBehaviorSenderType

Methods

IsSameEvent(RadElement, RoutedEventArgs)

Compares the instance with the other event arguments and the sender of the event.

Declaration

cs-api-definition
public bool IsSameEvent(RadElement senderElement, RoutedEventArgs eventArgs)

Parameters

senderElement

RadElement

eventArgs

RoutedEventArgs

Returns

bool

IsSameEvent(RaisedRoutedEvent)

Compares the instance with another event passed as a parameter.

Declaration

cs-api-definition
public bool IsSameEvent(RaisedRoutedEvent targetEvent)

Parameters

targetEvent

RaisedRoutedEvent

Returns

bool