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

ItemsControl with ItemsSource+VirtualizedStackPanel : bad scrollbar position after removing some items (different items heights) #9080

Open
JPDelprat opened this issue May 4, 2024 · 0 comments
Labels
Investigate Requires further investigation by the WPF team.

Comments

@JPDelprat
Copy link

JPDelprat commented May 4, 2024

Description

I have an ItemsControl with an ItemsSource and a VirtualizedStackPanel. Items have different heights.
I move the scrollbar to the bottom of ItemsControls.
I remove some items, so that scrollbar is still visible.

Resulting scrollbar position is invalid : only some of items which should be visible are on screen.

Reproduction Steps

Use the provided sample project : start the application than click on "Click to make bug appear" button.
Both ItemsControl should be at the same scroll position, but they are not.

See attached picture.
Bug

Here is the sample project, to reproduce the problem.
SampleProject.zip

Expected behavior

See the sample project : both itemsControl should be at the same scrolling position.

Actual behavior

See the sample project : both itemsControl are not at the same scrolling position.

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

@rchauhan18 rchauhan18 added the Investigate Requires further investigation by the WPF team. label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigate Requires further investigation by the WPF team.
Projects
None yet
Development

No branches or pull requests

2 participants