Skip to content

Subtle Blurriness in StackPanel Inside ScrollView or ScrollViewer When Maximized #10416

@Zakariathr22

Description

@Zakariathr22

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: microsoft/WinUI-Gallery#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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions