private void TextBox_GotFocus(object sender, RoutedEventArgs e) { TextBox tb = (TextBox)sender; tb.Text = string.Empty; tb.GotFocus -= TextBox_GotFocus; }