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

ReorderListBox bugs out when ScrollViewer is active #15

Open
avsomeren opened this issue Apr 29, 2011 · 0 comments
Open

ReorderListBox bugs out when ScrollViewer is active #15

avsomeren opened this issue Apr 29, 2011 · 0 comments
Labels

Comments

@avsomeren
Copy link

Whenever a listbox contains more items than it can handle, by default it will display a scrollviewer.
The reordering will stop to function properly when this happens.

The first thing i notice is that because of the standard virtualisation of the ItemsPanel, Transform item breaks because the item with an index higher than the ones visible will return null at ItemContainerGenerator.ContainerFromIndex(i) as FrameworkElement. This however is easily fixed by declaratively implementing a non virtualized ItemsPanel.

Second, the position of the overlay adorner is not updated when scrolling occurs. The adorner scrolls with the content of the ListBox and thus moves up or down.

The behaviour is easily reproduced by setting a ListBox height to 120 in the demo app.

Any clues on how to fix the second issue/observation?

Regards,
avsomeren

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant