microsoft / microsoft/microsoft-ui-xaml

Subtle Blurriness in `StackPanel` Inside `ScrollView` or `ScrollViewer` When Maximized

Open
#10,416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-ScrollBar area-Scrolling bug
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 as MaxWidth, are not set.
  • To work around this issue, I wrapped the StackPanel inside a Border, which resolved the blurriness without requiring significant changes to the layout.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.