New to Telerik UI for WinForms? Start a free 30-day trial

Associates a routed-event condition with callbacks invoked while the matching event is processed.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RoutedEventBehavior

Inheritance: objectRoutedEventBehavior

Constructors

Initializes the behavior with the routed-event condition it observes.

C#
public RoutedEventBehavior(RaisedRoutedEvent raisedRoutedEvent)
Parameters:raisedRoutedEventRaisedRoutedEvent

The event, sender, and route conditions used to match routed events.

Properties

Gets or sets the routed-event condition that determines when this behavior runs.

C#
public RaisedRoutedEvent RaisedRoutedEvent { get; set; }

Methods

C#
public virtual void BehaviorRemoving(RadElement fromElement)
Parameters:fromElementRadElement

Called on each element where the configured routed-event condition matches during event routing.

C#
public virtual void OnEventOccured(RadElement sender, RadElement element, RoutedEventArgs args)
Parameters:senderRadElement

The element that originally raised the event.

elementRadElement

The element whose behavior collection is processing the event.

argsRoutedEventArgs

The routed-event data being processed.