IScrollProvider.SetScrollPercent Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Sub SetScrollPercent ( _ horizontalPercent As Double, _ verticalPercent As Double _ )
Parameters
- horizontalPercent
- Type: System.Double
The horizontal position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.
- verticalPercent
- Type: System.Double
The vertical position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.
This method is useful only when the content area of the control is larger than the visible region.
Passing the value NoScroll indicates that there is no scrolling in the specified direction.
Show: