VerticalOffset Property

ScrollViewer.VerticalOffset Property


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

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

public double VerticalOffset { get; private set; }

Property Value

Type: System.Double

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

A positive VerticalOffset value corresponds to the content being offset to the top.

Valid values are between zero and the ExtentHeight minus the ViewportHeight.

If CanContentScroll is true, the values of the ExtentHeight, ScrollableHeight, ViewportHeight, and VerticalOffset properties are number of items. If CanContentScroll is false, the values of these properties are .GTMT

Beginning in the .NET Framework version 3.5 SP1, when IsDeferredScrollingEnabled is true, VerticalOffset continues to change as the user drags the Thumb, but the content view doesn't change until the Thumb is released. In this case, ContentVerticalOffset represents the visible content offset and VerticalOffset 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