[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a reference to the object that raised the event.
Assembly: System.Windows (in System.Windows.dll)
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 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 (, 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. For example, control compositing is often interested in , whereas usage of existing control instances in applications is generally only interested in sender unless the application's UI structure also uses event routing and a deliberately nested composition structure to "forward" input events.