Within an event, I\'d like to put the focus on a specific TextBox within the ListViewItem\'s template. The XAML looks like this:
Or it can be simply done by
private void yourtextboxinWPFGrid_LostFocus(object sender, RoutedEventArgs e) { //textbox can be catched like this. var textBox = ((TextBox)sender); EmailValidation(textBox.Text); }