I find it is scrolling too much at a time when the mouse scroll wheel is used. I have a very short ScrollViewer
(one line tall) that contains a few lines of items in a WrapPanel
, and it is scrolling right to the bottom in one "tick" so that the middle line is never visible.
views:
61answers:
1
+1
A:
Not nite solution but you could add a few panes with txt - one panel each line
ScrollViewer class uses IScrollInfo interface and there are 2 methods.
((IScrollInfo)myPanel).LineUp();// and LineDown()
add and method to UIElement.MouseWheel event and one rotation == one children of a panel
or you could use
myScrollviewer.ScrollToVerticalOffset(offset);
lukas
2010-07-29 03:34:32
Hmm, I suppose if I could intercept the mousewheel event I could scroll the scrollviewer manually as you suggest, given that I know how tall a "line" is (which in this case I do). I'll try it out.
chaiguy
2010-07-29 16:04:35