wpf element which detect clicks code example
Example: wpf get name of clicked element
FrameworkElement s = sender as FrameworkElement;
string name = s.Name;
FrameworkElement s = sender as FrameworkElement;
string name = s.Name;