/// <summary> /// Initializes a new instance of the <see cref="RoutedEventArgs"/> class, using the supplied routed event identifier, and providing the opportunity to declare a different source for the event. /// </summary> /// <param name="routedEvent">The routed event identifier for this instance of the <see cref="RoutedEventArgs"/> class.</param> /// <param name="source">An alternate source that will be reported when the event is handled. This pre-populates the <see cref="Source"/> property.</param> /// <remarks> /// When using this constructor, unspecified public properties of the new <see cref="RoutedEventArgs"/> instance assume the following default values: /// <see cref="Handled"/> = false.</remarks> public RoutedEventArgs(RoutedEvent routedEvent, UIElement source) { RoutedEvent = routedEvent; Source = source; }
/// <summary> /// Initializes a new instance of the RoutedEventArgs class, using the supplied routed event identifier. /// </summary> /// <param name="routedEvent">The routed event identifier for this instance of the <see cref="RoutedEventArgs"/> class.</param> /// <remarks> /// When using this constructor, unspecified public properties of the new <see cref="RoutedEventArgs"/> instance assume the following default values: /// <see cref="Handled"/> = false, <see cref="Source"/> = null. /// Null values for <see cref="Source"/> only mean that the <see cref="RoutedEventArgs"/> data makes no attempt to specify the source. /// When this instance is used in a call to <see cref="UIElement.RaiseEvent"/>, the <see cref="Source"/> value is populated based on the element /// that raised the event and are passed on to listeners through the routing. /// </remarks> public RoutedEventArgs(RoutedEvent routedEvent) :this(routedEvent, null) { }
public MyTestRoutedEventArgs(RoutedEvent routedEvent) : base(routedEvent) { }