[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)
Visual Basic (Declaration)
Public Property Source As Object
Dim instance As RoutedEventArgs
Dim value As Object
value = instance.Source
instance.Source = value
public Object Source { get; set; }
public:
property Object^ Source {
Object^ get ();
void set (Object^ value);
}
public function get Source () : Object
public function set Source (value : Object)
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.
Reference