You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behavior of focus borders has changed between Windows App SDK versions 1.5 and 1.6.
In Windows App SDK 1.5, when a control (e.g., a button) placed inside a ScrollViewer gains focus via the keyboard, clicking outside the control dismisses the focus border, indicating that the control has lost focus.
In Windows App SDK 1.6, the same action does not dismiss the focus border. Even after clicking outside the control, the focus border remains visible, indicating that the control retains focus.
This behavior change affects how focus is visually managed and may lead to inconsistencies in user experience, especially in scenarios relying on traditional focus dismissal behavior.
Steps to reproduce the bug
Create a WinUI 3 application.
Ensure that the installed Windows App SDK version is 1.6. If not, update to 1.6.
In MainWindow.xaml file, replace the existing code with following code .
Describe the bug
The behavior of focus borders has changed between Windows App SDK versions 1.5 and 1.6.
In Windows App SDK 1.5, when a control (e.g., a button) placed inside a ScrollViewer gains focus via the keyboard, clicking outside the control dismisses the focus border, indicating that the control has lost focus.
In Windows App SDK 1.6, the same action does not dismiss the focus border. Even after clicking outside the control, the focus border remains visible, indicating that the control retains focus.
This behavior change affects how focus is visually managed and may lead to inconsistencies in user experience, especially in scenarios relying on traditional focus dismissal behavior.
Steps to reproduce the bug
Sample projects with Windows App SDK 1.5 and 1.6 attached to reproduce the issue.
Apps.zip
Expected behavior
The focus border around the control should be dismissed, indicating the loss of focus (as in Windows App SDK 1.5).
Actual Behavior
The focus border remains visible around the control, even after clicking outside (as in Windows App SDK 1.6).
Screenshots
No response
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
If this is intentional, guidance on managing focus dismissal would be appreciated.
The text was updated successfully, but these errors were encountered: