private void btn_Click(object sender, RoutedEventArgs e) { Button tempBtn = (Button)sender; MessageBox.Show(tempBtn.Content.ToString()); }
private void btn_Click(object sender, RoutedEventArgs e) { var d= sender as button d.name; }