Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Listview & scrolling

$
0
0
hello,

I have a problem with ListView component, especially I can't reset the position of the ScrollViewer during scrolling.

Source code:
https://onedrive.live.com/redir?resid=4E7847F5333F72B6%21106


The two cases below are reproduced with a touchscreen:


Case 1: OK

Scroll and wait until scrolling is over

Change the source by clicking "Change source"

==> The position of the scroll is reset thanks to "listView.ScrollIntoView (listView.Items [0]);"



Case 2: KO

Scroll

Change the source by clicking "Change source"

==> The position of the scroll is not reset


Can you tell me if this is normal behavior, and / or if you have a fix.

Thank you!

Viewing all articles
Browse latest Browse all 18858

Trending Articles