This topic has not yet been rated Rate this topic

RoutedEventArgs.Source Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets a reference to the object that raised the event.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public Object Source { get; set; }

Property Value

Type: System.Object

The object that raised the event.

For any bubbling routed event that has actually traveled the route beyond the element that raised it, and for any tunneling routed event that has not yet tunneled down to the element that raised it, the value of Source will be different than the value of the sender parameter of the event handler signature. Which of the two elements involved in the event is of the most importance in any given handler (Source, the element that raised it, or sender, the element that is currently handling it) is dependent on the application logic that your handler is addressing.

Did you find this helpful?
(2000 characters remaining)