microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.37k stars 683 forks source link

Problem scrolling Dialog content in UWP - Windows 10 - DPI 125%, 150% and 175% #10000

Open edsonmata opened 2 months ago

edsonmata commented 2 months ago

Describe the bug

Screenshot_1

The dialog content is cut off when performing the described reproduction steps. Bug:

Investigating, we realized that Microsoft's own Content dialog ends up making the wrong calculation when enabling the vertical scrollviewer. This problem occurs specifically in UWP, Windows 10. Through investigation, it was discovered that when using fixed values

image

The component behaves properly, but this approach is problematic because it does not know the fixed size of the content. The correct way is to use it the way Microsoft itself uses it:

image

Steps to reproduce the bug

Bug:

image

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

whiskhub commented 2 months ago

offtopic, but congrats for creating the 10'000th issue on the WinUI GitHub repo 😅

marcelwgn commented 3 days ago

I am unable to reproduce this issue (though I am on Windows 11). Can you tell me where you found that OneUIContentDialogStyle? My app crashes since it's unable to locate that style.