Method OnFocused
OnFocused(object?, FocusEventArgs)
Handles the event when the control gains focus.
protected virtual void OnFocused(object? sender, FocusEventArgs e)
Parameters
sender
objectThe source of the focus event. This can be null.
e
FocusEventArgsThe event data associated with the focus event.
Remarks
Derived classes can override this method to provide custom behavior when the control gains focus.