This documentation is archived and is not being maintained.
ScrollChangedEventArgs Class
Visual Studio 2010
Describes a change in the scrolling state and contains the required arguments for a ScrollChanged event.
System::Object
System::EventArgs
System.Windows::RoutedEventArgs
System.Windows.Controls::ScrollChangedEventArgs
System::EventArgs
System.Windows::RoutedEventArgs
System.Windows.Controls::ScrollChangedEventArgs
Assembly: PresentationFramework (in PresentationFramework.dll)
The ScrollChangedEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ExtentHeight | Gets the updated height of the ScrollViewer extent. |
![]() | ExtentHeightChange | Gets a value that indicates the change in height of the ScrollViewer extent. |
![]() | ExtentWidth | Gets the updated width of the ScrollViewer extent. |
![]() | ExtentWidthChange | Gets a value that indicates the change in width of the ScrollViewer extent. |
![]() | Handled | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (Inherited from RoutedEventArgs.) |
![]() | HorizontalChange | Gets a value that indicates the change in horizontal offset for a ScrollViewer. |
![]() | HorizontalOffset | Gets the updated horizontal offset value for a ScrollViewer. |
![]() | OriginalSource | Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.) |
![]() | RoutedEvent | Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.) |
![]() | Source | Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.) |
![]() | VerticalChange | Gets a value that indicates the change in vertical offset of a ScrollViewer. |
![]() | VerticalOffset | Gets the updated value of the vertical offset for a ScrollViewer. |
![]() | ViewportHeight | Gets the updated value of the viewport height for a ScrollViewer. |
![]() | ViewportHeightChange | Gets a value that indicates the change in value of the viewport height for a ScrollViewer. |
![]() | ViewportWidth | Gets the updated value of the viewport width for a ScrollViewer. |
![]() | ViewportWidthChange | Gets a value that indicates the change in viewport width of a ScrollViewer. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeEventHandler | Performs proper type casting before invoking the type-safe ScrollChangedEventHandler delegate (Overrides RoutedEventArgs::InvokeEventHandler(Delegate, Object).) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnSetSource | When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. (Inherited from RoutedEventArgs.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This example shows how to handle the ScrollChanged event of a ScrollViewer.
A FlowDocument element with Paragraph parts is defined in XAML. When the ScrollChanged event occurs due to user interaction, a handler is invoked, and text is written to a TextBlock indicating that the event has occurred.
<ScrollViewer Name="sv1" CanContentScroll="False" ScrollChanged="sChanged"> <FlowDocument FontFamily="Arial" PageWidth="400"> <Paragraph> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. </Paragraph> ... <Paragraph> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure. </Paragraph> </FlowDocument> </ScrollViewer>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
