0
Votes in Release
(breakdown)
Add a preview ToolTip to a ScrollViewer

Description

When a list control contains a long list of items, it can be helpful while scrolling to show a preview of where the user is scrolling next to the thumb control of the ScrollBar. This sample shows one way of adding that tooltip to ItemsControl derived controls that container a ScrollViewer.

This project can be built and run using Microsoft Visual Studio 2008.

What is shown
  • How to access the Thumb control given the root ItemsControl.
  • How to position the ToolTip next to the Thumb control.
  • How to customize the ToolTip using DataTemplates.

What is not shown
  • The code works best with a linear stack layout. It can be improved, however, to handle other layouts.

If you decide to use any of the code, please be sure to read any commented notes.


Files

Source Code ScrollViewerPreviewToolTip.zip
source code, 15K, uploaded Aug 24 2008  - 1105 downloads



Updating...
Page view tracker