-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrollView control doesn't scoll. #9373
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Open similar issues:
|
Try RowDefinition Height="*" instead of Auto. |
Thank you @eduardobragaxz with "*" it works. But, in your opinion, is It a correct behaviour ? Why in row 0 it works ? |
@Simon-IT Which row it is in doesn't matter. If you put something in a row with Auto as the height, the row will grow to whatever size the content wants. The ScrollView wants to be as big as its content (the TextBlock), so the grid lets it be that big (hence no scrolling). The row is now running off the bottom of the screen. If you put something in a row with * as the height the row stretches to fill however much space it can, then tells its children that is how much space they have to work with. The ScrollView now doesn't get to be as big as it wants, so its height is constrained and scrolling now works. Setting the height to 240 is the same as *, you just provided an explicit height rather than a variable one based on the containing elements. |
Thanks @kmgallahan for the detailed response. @Simon-IT hope that helps. |
@Thak you @kmgallahan for the detailed response. Thank you all guys for time. |
Describe the bug
Hi,
creating a very simple C# WinUI 3 desktop app for text scrolling test, I've found a problem if a TextBlock control contained in a ScrollView control are inside a Grid and its row position is not 0: simply in position 1 the vertical scroll bar doesn't appear and so scrolling is impossible.
Thank you for the time !!
Steps to reproduce the bug
Expected behavior
Vertical scroll bar should appears in both 0 and 1 grid position
Screenshots
NuGet package version
None
Windows version
No response
Additional context
WinUI 3 - WindowsApp SDK 1.4.5: 1.4.240211001
Windows 11 23H2: Build 22631.3155
The text was updated successfully, but these errors were encountered: