private void OnScrollChanged(object sender, ScrollChangedEventArgs e) { double offset = e.VerticalOffset / e.ExtentHeight; double speed = (e.ViewportHeight / e.ExtentHeight) * 10; ((ScrollViewer)sender).ScrollToVerticalOffset(offset * speed); }
The ScrollViewer class is part of the WindowsBase.dll package library.Item 1 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 Item 8 Item 9 Item 10