I have 5 textboxes that gets editable on double click.
Below is method i have written for one textbox.
private void TextBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
txtFirstLctrTime.IsReadOnly = false;
txtFirstLctrTime.Background = new SolidColorBrush(Colors.White);
txtFirstLctrTime.Foreground = new SolidColorBrush(Colors.Black);
}
Is there any way i can use same method for all text box instead of writing different method for all?? I am fairly new to programming