Description:
When the application window loses focus (is deactivated), a focused TextBox continues to show its active visual state, including the highlighted border and the blinking caret. This gives a misleading visual cue to the user, implying that the control is still actively receiving keyboard input when the window itself is no longer active.
Expected Behavior:
When the Window is deactivated, a focused TextBox should update its visual state to indicate it no longer has effective keyboard focus. It should hide the blinking caret and change the highlight border to a neutral or inactive color. When the window is activated again, the active visual state should be restored.
Actual Behavior:
The TextBox border remains highlighted and the caret continues to blink even after the application window has been deactivated.
Steps to Reproduce:
- Launch an application containing a
TextBox.
- Click inside the
TextBox to focus it (observe the blinking caret and border).
- Click outside the application window (e.g., on the desktop or another application) to deactivate the window.
- Observe that the
TextBox inside the deactivated window still shows the caret and focus border.
Screenshots:

Description:
When the application window loses focus (is deactivated), a focused
TextBoxcontinues to show its active visual state, including the highlighted border and the blinking caret. This gives a misleading visual cue to the user, implying that the control is still actively receiving keyboard input when the window itself is no longer active.Expected Behavior:
When the
Windowis deactivated, a focusedTextBoxshould update its visual state to indicate it no longer has effective keyboard focus. It should hide the blinking caret and change the highlight border to a neutral or inactive color. When the window is activated again, the active visual state should be restored.Actual Behavior:
The
TextBoxborder remains highlighted and the caret continues to blink even after the application window has been deactivated.Steps to Reproduce:
TextBox.TextBoxto focus it (observe the blinking caret and border).TextBoxinside the deactivated window still shows the caret and focus border.Screenshots:
