Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ScrollViewer.PanningRatio Property

.NET Framework (current version)

Gets or sets the ratio of scrolling offset to translate manipulation offset.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public double PanningRatio { get; set; }

Property Value

Type: System.Double

The ratio of scrolling offset to translate manipulation offset. The default is 1.

When a user drags a finger across an object, it is considered a translate manipulation. The ScrollViewer uses that manipulation to scroll. The PanningRatio property specifies how much the ScrollViewer scrolls for each unit of translation. For example, if PanningRatio is 2, the ScrollViewer will scroll 2 device-independent units (1/96th inch per unit) for every device-independent unit (1/96th inch) of the translate manipulation.

.NET Framework
Available since 4.0
Return to top
© 2017 Microsoft