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

Contains state information and event data associated with a cancelable routed event.

Definition

Constructors

Initializes a new instance of the CancelRoutedEventArgs class.

C#
public CancelRoutedEventArgs()

Initializes a new instance of the CancelRoutedEventArgs class.

C#
public CancelRoutedEventArgs(RoutedEvent routedEvent, object source)
Parameters:routedEventRoutedEvent

The routed event identifier for this instance of the RoutedEventArgs class.

sourceobject

An alternate source that will be reported when the event is handled.

Initializes a new instance of the CancelRoutedEventArgs class.

C#
public CancelRoutedEventArgs(RoutedEvent routedEvent)
Parameters:routedEventRoutedEvent

The routed event identifier.

Properties

Gets or sets a value indicating whether the event should be canceled.

C#
public bool Cancel { get; set; }
Property Value:

True if cancel; otherwise, false.