IScrollInfo Interface

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

Represents the main scrollable region inside a ScrollViewer control.

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

Syntax

Public Interface IScrollInfo
public interface IScrollInfo

The IScrollInfo type exposes the following members.

Properties

  Name Description
CanHorizontallyScroll Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
CanVerticallyScroll Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
ExtentHeight Gets the vertical size of the extent.
ExtentWidth Gets the horizontal size of the extent.
HorizontalOffset Gets the horizontal offset of the scrolled content.
ScrollOwner Gets or sets a ScrollViewer element that controls scrolling behavior.
VerticalOffset Gets the vertical offset of the scrolled content.
ViewportHeight Gets the vertical size of the viewport for this content.
ViewportWidth Gets the horizontal size of the viewport for this content.

Top

Methods

  Name Description
LineDown Scrolls down within the content by one logical unit.
LineLeft Scrolls left within the content by one logical unit.
LineRight Scrolls right within the content by one logical unit.
LineUp Scrolls up within the content by one logical unit.
MakeVisible Forces content to scroll until the coordinate space of a visual object is visible.
MouseWheelDown Scrolls down within the content.
MouseWheelLeft Scrolls left within the content.
MouseWheelRight Scrolls right within the content.
MouseWheelUp Scrolls up within the content.
PageDown Scrolls down within the content by one page.
PageLeft Scrolls left within the content by one page.
PageRight Scrolls right within the content by one page.
PageUp Scrolls up within the content by one page.
SetHorizontalOffset Sets the amount of horizontal offset.
SetVerticalOffset Sets the amount of vertical offset.

Top

Remarks

The IScrollInfo interface exposes access to methods that enable logical scrolling of child content, as well as, computing which child elements are visible. In addition, it defines properties used to define the scrollable region.

Logical scrolling enables scrolling to the next element in the logical tree. In contrast, physical scrolling scrolls content by a defined measurable increment in a specified direction.

Examples

The following example uses virtualization to only instantiate the objects that are currently in view. The example implements the IScrollInfo interface to create a custom panel that derives from VirtualizingStackPanel.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

System.Windows.Controls.Primitives Namespace