Monday, June 8, 2009

Scroll Viewer Control

  • This control encapsulates horizontal and vertical ScrollBar elements and a content container in order to display other visible elements in a scrollable area.
  • You must build a custom object in order to use the ScrollBar element for content scrolling. However, you can use the ScrollViewer element by itself because it is a composite control that encapsulates ScrollBar functionality.
  • This control responds to both mouse and keyboard commands, and defines numerous methods with which to scroll content by predetermined increments.
  • You can use the ScrollChanged event to detect a change in a ScrollViewer state.
  • It can only have one child, typically a Panel element that can host a Children collection of elements. The Content property defines the sole child of the ScrollViewer.

No comments:

Post a Comment