IScrollInfo Interface
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents the main scrollable region inside a ScrollViewer control.
Namespace: System.Windows.Controls.Primitives
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
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 after the user clicks the wheel button on a mouse. | |
MouseWheelLeft | Scrolls left within the content after the user clicks the wheel button on a mouse. | |
MouseWheelRight | Scrolls right within the content after the user clicks the wheel button on a mouse. | |
MouseWheelUp | Scrolls up within the content after the user clicks the wheel button on a mouse. | |
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
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.