HorizontalOffset Property

ScrollViewer.HorizontalOffset Property


Gets a value that contains the horizontal of the scrolled content. GTMT

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

public double HorizontalOffset { get; private set; }

Property Value

Type: System.Double

A Double that represents the horizontal of the scrolled content. The default is 0.0.GTMT

A positive HorizontalOffset value corresponds to the content being offset to the left.

Valid values are between zero and the ExtentWidth minus the ViewportWidth.

The returned value is described in .GTMT

Beginning in the .NET Framework version 3.5 SP1, when IsDeferredScrollingEnabled is true, HorizontalOffset continues to change as the user drags the Thumb, but the content view doesn't change until the Thumb is released. In this case, ContentHorizontalOffset represents the visible content offset and HorizontalOffset represents the content offset based on the Thumb position.

Identifier field


Metadata properties set to true


.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft