Version

ConvertPixelsToScrollUnits Method

Called by the gesture manager during a panning operation to convert distances which are expressed in pixels to scroll units.
Syntax
'Declaration
 
Function ConvertPixelsToScrollUnits( _
   ByVal containerElement As UIElement, _
   ByVal orientation As Orientation, _
   ByVal pixels As Integer _
) As Integer
int ConvertPixelsToScrollUnits( 
   UIElement containerElement,
   Orientation orientation,
   int pixels
)

Parameters

containerElement
A reference to the UIElement which contains the items to be scrolled.
orientation
The orientation, i.e., horizontal or vertical.
pixels
The value to be converted.

Return Value

The result of the conversion.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also