Implementing the UI Automation MultipleView Control Pattern

This topic introduces guidelines and conventions for implementing IMultipleViewProvider, including information about properties and methods. Links to additional references are listed at the end of the topic.
The MultipleView control pattern is used to support controls that provide, and are able to switch between, multiple representations of the same set of information or child controls.
Examples of controls that can present multiple views include the list view (which can show its contents as thumbnails, tiles, icons, or details), Microsoft Excel charts (pie, line, bar, cell value with a formula), Microsoft Word documents (normal, Web layout, print layout, reading layout, outline), Microsoft Outlook calendar (year, month, week, day), and Microsoft Windows Media Player skins. The supported views are determined by the control developer and are specific to each control.

This topic contains the following sections.

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

Implementation Guidelines and Conventions

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

  • IMultipleViewProvider should also be implemented on a container that manages the current view if it is different from a control that provides the current view. For example, Windows Explorer contains a List control for the current folder content while the view for the control is managed from the Windows Explorer application.
  • A control that is able to sort its content is not considered to support multiple views.
  • The collection of views must be identical across instances.
  • View names must be suitable for use in Text to Speech, Braille, and other human-readable applications.

Required Members for IMultipleViewProvider

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

Required members Member type Notes
IMultipleViewProvider::CurrentView Property None
IMultipleViewProvider::GetSupportedViews Method None
IMultipleViewProvider::GetViewName Method None
IMultipleViewProvider::SetCurrentView Method None

This control pattern has no associated events.