microsoft / microsoft/microsoft-ui-xaml
`TextBox` inside a `ScrollViewer` does not lose focus when click in empty spaces
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
`TextBox` inside a `ScrollViewer` does not lose focus when click in empty spaces, but a `TextBox` inside any other panel does.
### Steps to reproduce the bug
1. Use this xaml
```xml
```
### Expected behavior
_No response_
### Screenshots

### NuGet package version

### Windows version
_No response_
### Additional context
Related #3825
[Repro](https://github.com/HO-COOH/WinUI-Bug/tree/main/19-TextBoxInsideScrollViewerNotLosingFocus)
Contributor guide
Research direction
Start with the linked WinUI-Bug repro, especially the TextBox and ScrollViewer example, and compare it with the adjacent Grid case. Read related issue #3825 and use the repro to determine the expected focus behavior; done means the two layouts behave consistently when empty space is clicked.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100