Skip to content

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Oct 12, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Introduces logic to store and temporarily disable scroll and bounce behaviors on the CollectionView when the empty view is displayed, preventing visual glitches. Restores the original settings when the empty view is removed.

Before After
Untitled.mov
Screen.Recording.2025-10-12.at.15.54.56.mov

Issues Fixed

Fixes #31960

<Grid RowDefinitions="auto,200">
    <Button Text="Modify ItemsSource"
            Clicked="OnModifyItemsSourceClicked"
            HorizontalOptions="Center"
            VerticalOptions="Center"
            Grid.Row="0"/>
    <CollectionView
        Grid.Row="1"
        BackgroundColor="Red"
        x:Name="collectionView"
        WidthRequest="200"
        VerticalScrollBarVisibility="Always">
        <CollectionView.EmptyView>
            <Grid BackgroundColor="Green">
                <Label  Text="Empty CollectionView"/>
            </Grid>
        </CollectionView.EmptyView>
    </CollectionView>
</Grid>

Introduces logic to store and temporarily disable scroll and bounce behaviors on the CollectionView when the empty view is displayed, preventing visual glitches. Restores the original settings when the empty view is removed.
@Copilot Copilot AI review requested due to automatic review settings October 12, 2025 14:04
@kubaflo kubaflo changed the base branch from main to net10.0 October 12, 2025 14:04
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Oct 12, 2025
@kubaflo kubaflo changed the title Fix 31960 [Net10] CV2 - Disable scrolling and bouncing when empty view is shown Oct 12, 2025
@kubaflo kubaflo self-assigned this Oct 12, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants