AC.AvalonControlsLibrary.Controls.TimePicker.TextGotFocus C# (CSharp) Method

TextGotFocus() private method

private TextGotFocus ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void TextGotFocus(object sender, RoutedEventArgs e)
        {
            TextBox selectedBox = (TextBox)sender;
            //set the currently selected textbox. 
            //This field is used to check which entity(hour/minute/second) to increment/decrement when user clicks the buttuns
            currentlySelectedTextBox = selectedBox;
            
            //highlight all code so that it is easier to the user to enter new info in the text box
            selectedBox.SelectAll();
        }