ViewportWidth Property

ScrollContentPresenter.ViewportWidth Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the horizontal size of the viewport.

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

public double ViewportWidth { get; }

Property Value

Type: System.Double
The horizontal size of the viewport.



The viewport is the visible area of the content. The extent includes all the content in the ScrollViewer.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft