WPF Получите имя элемента щелчка
FrameworkElement s = sender as FrameworkElement;
string name = s.Name;
Solstice
FrameworkElement s = sender as FrameworkElement;
string name = s.Name;