Information
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.

IScrollInfo Interface

Represents the main scrollable region inside a ScrollViewer control.

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

public interface IScrollInfo

The IScrollInfo type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneCanHorizontallyScrollGets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Public propertySupported by Silverlight for Windows PhoneCanVerticallyScrollGets or sets a value that indicates whether scrolling on the vertical axis is possible.
Public propertySupported by Silverlight for Windows PhoneExtentHeightGets the vertical size of the extent.
Public propertySupported by Silverlight for Windows PhoneExtentWidthGets the horizontal size of the extent.
Public propertySupported by Silverlight for Windows PhoneHorizontalOffsetGets the horizontal offset of the scrolled content.
Public propertySupported by Silverlight for Windows PhoneScrollOwnerGets or sets a ScrollViewer element that controls scrolling behavior.
Public propertySupported by Silverlight for Windows PhoneVerticalOffsetGets the vertical offset of the scrolled content.
Public propertySupported by Silverlight for Windows PhoneViewportHeightGets the vertical size of the viewport for this content.
Public propertySupported by Silverlight for Windows PhoneViewportWidthGets the horizontal size of the viewport for this content.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneLineDownScrolls down within the content by one logical unit.
Public methodSupported by Silverlight for Windows PhoneLineLeftScrolls left within the content by one logical unit.
Public methodSupported by Silverlight for Windows PhoneLineRightScrolls right within the content by one logical unit.
Public methodSupported by Silverlight for Windows PhoneLineUpScrolls up within the content by one logical unit.
Public methodSupported by Silverlight for Windows PhoneMakeVisibleForces content to scroll until the coordinate space of a visual object is visible.
Public methodSupported by Silverlight for Windows PhoneMouseWheelDownScrolls down within the content after the user clicks the wheel button on a mouse.
Public methodSupported by Silverlight for Windows PhoneMouseWheelLeftScrolls left within the content after the user clicks the wheel button on a mouse.
Public methodSupported by Silverlight for Windows PhoneMouseWheelRightScrolls right within the content after the user clicks the wheel button on a mouse.
Public methodSupported by Silverlight for Windows PhoneMouseWheelUpScrolls up within the content after the user clicks the wheel button on a mouse.
Public methodSupported by Silverlight for Windows PhonePageDownScrolls down within the content by one page.
Public methodSupported by Silverlight for Windows PhonePageLeftScrolls left within the content by one page.
Public methodSupported by Silverlight for Windows PhonePageRightScrolls right within the content by one page.
Public methodSupported by Silverlight for Windows PhonePageUpScrolls up within the content by one page.
Public methodSupported by Silverlight for Windows PhoneSetHorizontalOffsetSets the amount of horizontal offset.
Public methodSupported by Silverlight for Windows PhoneSetVerticalOffsetSets the amount of vertical offset.
Top

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.

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.

Run this sample

Download Sample

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft