Share via


Implementing the UI Automation Scroll Control Pattern

This topic introduces guidelines and conventions for implementing IScrollProvider, including information about properties and methods. Links to additional references are listed at the end of the topic.

The Scroll control pattern is used to support a control that acts as a scrollable container for a collection of child objects. The control is not required to use scrollbars to support the scrolling functionality, although it commonly does. The following image shows a scrolling control that does not use scrollbars. For examples of controls that implement this control pattern, see Control Pattern Mapping for UI Automation Clients.

Image of a scrolling control that does not use scrollbars.

This topic contains the following sections.

  • Implementation Guidelines and Conventions
  • Required Members for IScrollProvider
  • Related Topics

Implementation Guidelines and Conventions

When implementing the Scroll control pattern, note the following guidelines and conventions:

Required Members for IScrollProvider

The following properties and methods are required for implementing the IScrollProvider interface.

Required members Member type Notes
IScrollProvider::HorizontalScrollPercent Property None
IScrollProvider::VerticalScrollPercent Property None
IScrollProvider::HorizontalViewSize Property None
IScrollProvider::VerticalViewSize Property None
IScrollProvider::HorizontallyScrollable Property None
IScrollProvider::VerticallyScrollable Property None
IScrollProvider::Scroll Method None
IScrollProvider::SetScrollPercent Method None

This control pattern has no associated events.