wpf get name of clicked element

C#
FrameworkElement s = sender as FrameworkElement;
string name = s.Name;
Source

Also in C#: