Skip to content
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

Application hangs when scrolling #9199

Closed
AmelBawa-msft opened this issue Jan 2, 2024 · 0 comments
Closed

Application hangs when scrolling #9199

AmelBawa-msft opened this issue Jan 2, 2024 · 0 comments
Labels
area-Scrolling bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Milestone

Comments

@AmelBawa-msft
Copy link

AmelBawa-msft commented Jan 2, 2024

Describe the bug

I noticed this bug when working on a similar scenario in Dev Home when scrolling inside a ScrollViewer containing a nested ItemsRepeater, the application consistently hangs indefinitely.

Steps to reproduce the bug

I am able to repro with the following code:

MainWindow.xaml

<Window>
    <ScrollViewer>
        <ItemsRepeater ItemsSource="{x:Bind Items}">
            <ItemsRepeater.ItemTemplate>
                <DataTemplate>
                    <ItemsRepeater ItemsSource="{Binding}">
                        <ItemsRepeater.Layout>
                            <UniformGridLayout
                                Orientation="Horizontal"
                                MinItemWidth="150"
                                MaximumRowsOrColumns="3"
                                MinRowSpacing="4"
                                MinColumnSpacing="4"
                                MinItemHeight="150"
                                ItemsStretch="Fill" />
                        </ItemsRepeater.Layout>
                        <ItemsRepeater.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding}" />
                            </DataTemplate>
                        </ItemsRepeater.ItemTemplate>
                    </ItemsRepeater>
                </DataTemplate>
            </ItemsRepeater.ItemTemplate>
        </ItemsRepeater>
    </ScrollViewer>
</Window>

MainWindow.xaml.cs

    public sealed partial class MainWindow : Window
    {
        public List<List<int>> Items = Enumerable.Range(0, 10).Select(_ => Enumerable.Range(1, 6).ToList()).ToList();
            

        public MainWindow()
        {
            this.InitializeComponent();
        }
    }

Expected behavior

No response

Screenshots

  1. Start scrolling
  2. Application hangs

bug

NuGet package version

WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@AmelBawa-msft AmelBawa-msft added the bug Something isn't working label Jan 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 2, 2024
@bpulliam bpulliam added area-Scrolling and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@bpulliam bpulliam added the team-Controls Issue for the Controls team label Jan 22, 2024
@llongley llongley added this to the WinAppSDK 1.7 milestone Sep 5, 2024
@llongley llongley closed this as completed Sep 5, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Scrolling bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants