mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.7 KiB
1.7 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | ||||
|---|---|---|---|---|---|---|---|---|
| How to: Handle the ScrollChanged Event | 03/30/2017 |
|
|
42c695d8-ee28-49d4-80fd-fc71e9be7f29 |
How to: Handle the ScrollChanged Event
Example
This example shows how to handle the xref:System.Windows.Controls.ScrollViewer.ScrollChanged event of a xref:System.Windows.Controls.ScrollViewer.
A xref:System.Windows.Documents.FlowDocument element with xref:System.Windows.Documents.Paragraph parts is defined in [!INCLUDETLA2#tla_xaml]. When the xref:System.Windows.Controls.ScrollViewer.ScrollChanged event occurs due to user interaction, a handler is invoked, and text is written to a xref:System.Windows.Controls.TextBlock indicating that the event has occurred.
[!code-xamlscrollchangedeventargsLayout#1]
[!code-xamlscrollchangedeventargsLayout#2]
[!code-csharpscrollchangedeventargsLayout#3] [!code-vbscrollchangedeventargsLayout#3]