ScrollViewer/ScrollContentPresenter offsets

I'm using a ScrollViewer and have run in to a problem: as far as I can tell, there is no easy way to adjust how much the content in the ScrollViewer changes. ScrollViewer exposes no Small/LargeChange properties, and ignores the scrollbars Small/LargeChange values. The problem seems to be because the ScrollContentPresenter has hardcoded values for everything: + 16px for LineDown, etc.

Short of completely rewriting ScrollContentPresenter (whose behavior, besides the hardcoding of changes, is exactly what I want), does anyone know of a way to specify how much the content should scroll by?

To the admins: if I wanted to file this as a suggestion, where could I do this?

[697 byte] By [BenVanik] at [2008-1-7]
# 1
+1 for that feature.
My currently solution - implemented IScrollInfo.
IvanShumilin at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2

I ended up doing something very, very bad: Reflectoring out the ScrollContentPresenter code, adding 4 dependency properties (SmallVerticalChange/LargeVerticalChange + Horizontals), and replacing the constants. Some reflection trickery was required for some of the internal methods/types, but it seems to work well.

Doesn't replace a proper solution, though.

BenVanik at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified