microsoft / microsoft/microsoft-ui-xaml
Subtle Blurriness in `StackPanel` Inside `ScrollView` or `ScrollViewer` When Maximized
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
Describe the bug
When a StackPanel is placed inside a ScrollView or ScrollViewer, changing its visual properties (e.g., setting MaxWidth) can cause a slight blurriness issue when the window is maximized. This issue is subtle and difficult to notice but affects text and UI clarity.
Steps to reproduce the bug
Refer to the discussion and fix in this PR: https://github.com/microsoft/WinUI-Gallery/pull/1801
Expected behavior
The contents inside the StackPanel should remain sharp and clear, regardless of window resizing or maximizing.
Screenshots
The issue is hard to capture in screenshots, as it requires deep observation while resizing or maximizing the window.
NuGet package version
WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002
Windows version
Windows 11 (23H2): Build 22631
Additional context
- This issue does not occur when the visual properties of
StackPanel, such asMaxWidth, are not set. - To work around this issue, I wrapped the
StackPanelinside aBorder, which resolved the blurriness without requiring significant changes to the layout.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the StackPanel inside a ScrollView or ScrollViewer with MaxWidth set, using Windows App SDK 1.6.5 on Windows 11 23H2, then compare behavior while resizing and maximizing. Read the discussion and proposed fix in PR #1801; done means the contents remain sharp without requiring the Border workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100